Re: [Matplotlib-users] optimizes basemap rendering for tiles

2006-08-10 Thread Jeff Whitaker
Daniel Poelzleithner wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using django and basemap to render tiles i can use to make an overlay on google maps. I'm using this to generate a topology of an open mesh network (freifunk) here in leipzig :) On my local developing

Re: [Matplotlib-users] Basemap - quiver scaling

2006-08-31 Thread Jeff Whitaker
James Boyle wrote: when I call quiver in the Basemap toolkit, the scale keyword has the effect of eliminating all vectors, no matter what value I assign (except None). I am using matplotlib 0.87.3 - Basemap 0.9 In any case the exact effect of the scale parameter is obscure - how does

Re: [Matplotlib-users] basemap memory leak?

2006-08-31 Thread Jeff Whitaker
Gerald John M. Manipon wrote: Hi all, I'm trying to generate a plot that contains 3 subplots: 2 line plots and a basemap plot showing location. I'm generating about 200 such plots however my script doesn't get to complete because it encounters a MemoryError. I found the test script at

Re: [Matplotlib-users] Plotting non-rectangular data on maps

2006-12-12 Thread Jeff Whitaker
Orion Poplawski wrote: I've got a 2-D array of values that I'd like to plot onto a map with Basemap. The latitude and longitudes for each point are stored in their own 2-D array that matches that of the values. Can some one help with how to do this? Looks like basemap requires a square

Re: [Matplotlib-users] Plotting non-rectangular data on maps

2006-12-12 Thread Jeff Whitaker
Orion Poplawski wrote: Jeff Whitaker wrote: Orion Poplawski wrote: I've got a 2-D array of values that I'd like to plot onto a map with Basemap. The latitude and longitudes for each point are stored in their own 2-D array that matches that of the values. Can some one help with how to do

Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread Jeff Whitaker
[EMAIL PROTECTED] wrote: hi,everybody.first say sorry for my poor english. I want to make a contour plot with part out of the irregular boundary blank.just as http://www.pyngl.ucar.edu/Examples/Images/ngl05p.3.png shows. how can i do? How is the irregular boundary defined? Is it defined

Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread Jeff Whitaker
[EMAIL PROTECTED] wrote: Shu: I'd make a mask by finding the points on the grid that are outside your polygon. Then use that mask to create a masked array from your data (masking the points you don't want to plot). matplotlib's contourf knows how to deal with masked arrays (at least when

Re: [Matplotlib-users] imshow and 2d interpolation

2006-12-21 Thread Jeff Whitaker
John Hunter wrote: Paul == Paul Cristini [EMAIL PROTECTED] writes: Paul Hi everybody, I am trying to perform interpolation on 2d Paul data ( irregular or not) and I am wondering if there is a Paul way to get the interpolated results which are obtained with Paul

Re: [Matplotlib-users] Masked nan

2006-12-21 Thread Jeff Whitaker
Paul Novak wrote: I have a problem that arose when I tried to run the gridding irregularly spaced data demo on the wiki http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data When I run the attached script, which sets one value of an array to nan, masks the array where

Re: [Matplotlib-users] Can't get pylab to import with Python 2.4 on Mac OS X 10.4.8 on PPC

2006-12-28 Thread Jeff Whitaker
Chris Pettit wrote: Thanks in advance to anyone who can help. This is my first extended attempt to make matplotlib work, and I'm relatively new to the whole Python world. I have MacPython2.4 running now, which seems to work fine. I installed everything for matplotlib, scipy, etc., from

Re: [Matplotlib-users] contours polar?

2006-12-29 Thread Jeff Whitaker
Petr Danecek wrote: Beautiful! The grid lines must be drawn manually? On Thu, 2006-12-28 at 13:32 -0700, Jeff Whitaker wrote: Here's a slightly prettier version of my previous example: from pylab import * deltatheta = 2.*pi/100. theta = arange(0.,2.*pi+0.5*deltatheta,deltatheta) R

Re: [Matplotlib-users] contours polar?

2006-12-29 Thread Jeff Whitaker
Petr Danecek wrote: Beautiful! The grid lines must be drawn manually? On Thu, 2006-12-28 at 13:32 -0700, Jeff Whitaker wrote: Here's a slightly prettier version of my previous example: from pylab import * deltatheta = 2.*pi/100. theta = arange(0.,2.*pi+0.5*deltatheta,deltatheta) R

Re: [Matplotlib-users] contour and basemap

2006-12-31 Thread Jeff Whitaker
Evan Mason wrote: In the mpl basemap 'test.py' script, I want to add some contours to the mercator projection map (test #3). Just below line 83 (ie, below the 'im = imshow..' command I added the line: m.contour(topodat,[-1000, -2000]) This returns:

Re: [Matplotlib-users] title and colorbar size

2007-01-02 Thread Jeff Whitaker
Petr Danecek wrote: Hello, i'd like to ask two questions: 1) Is it possible to control amount of space between title and graph? Petr: The title command takes 'x' and 'y' keyword arguments that set the position of the title in axis coordinates. For example, try 'y=1.075' to move the

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Jeff Whitaker
Christopher Barker wrote: Eric Firing wrote: Even without the automatic-redraw difference, the OO interface requires more typing, and more mental record-keeping, than the pylab interface. Yes, but I don't think that's inherent in an OO interface, it's just that the quickie

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Jeff Whitaker
Christopher Barker wrote: Jeff Whitaker wrote: Chris: In the pylab interface, figure() returns a figure instance and plot(x,y) returns a list of Line2d instances. yes, but it's the axis instance that you are most likely to need! - Chris Chris: Never noticed this before, but apparently

Re: [Matplotlib-users] basemap conversion to Google Earth?

2007-02-07 Thread Jeff Whitaker
Mark Bakker wrote: Hello - Can basemap help with a coversion to Google Earth coordinates and mabye even a kmz file? Thanks, Mark Mark: AFAICT, google earth uses geographic coordinates (just plain lat and lon, with no map projection). Basemap could help if you have data on a map

[Matplotlib-users] new release of basemap

2007-03-16 Thread Jeff Whitaker
All: I just put a new release (0.9.5) of basemap on the sf download site. Not much in the way of new features, mostly minor bugfixes, python 2.5 compatibility fixes and under-the-hood changes to facilitate building eggs. MacOS X and windows binary installers are available for python 2.4 and

Re: [Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread Jeff Whitaker
Jesper Larsen wrote: Hi matplotlib users, I'm using matplotlib for a long running process. Unfortunately the memory usage continue to grow as the process runs. I have appended a simple example which illustrates this at the end of this mail. Unfortunately I haven't figured out how to use

Re: [Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread Jeff Whitaker
Eric Firing wrote: Jeff Whitaker wrote: Jesper Larsen wrote: Hi matplotlib users, I'm using matplotlib for a long running process. Unfortunately the memory usage continue to grow as the process runs. I have appended a simple example which illustrates this at the end of this mail

Re: [Matplotlib-users] Best way to plot grid point values on a map?

2007-04-03 Thread Jeff Whitaker
Simon Kammerer wrote: Hi list, what's the best (meaning most efficient/fastest) way to plot grid point values on a map created with basemap? I'd like to plot the raw values of my data-array to the correspondig gridpoints, instead of having it transformed to something like contour or

Re: [Matplotlib-users] Plotting two histograms

2007-04-06 Thread Jeff Whitaker
Tommy Grav wrote: I have two lists that I would like to plot as two separate histograms inside the same plot. However pylab.hist(h1list,26,facecolor='r') pylab.hist(h2list,26,alpha=0.3) pylab.show() seems to plot the two histograms with different x-y limits on the axis. Also how can

Re: [Matplotlib-users] Basemap 3D

2007-04-12 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Hi all, not sure it's possible, I can't find any example but I ask : is there a way to make some 3D maps with Basemap, like we can do with ArcScene (ESRI), mixing rasters or shapefiles with TINs? If no, do you know a way to do so with python? Thanks Lionel:

Re: [Matplotlib-users] Basemap 3D

2007-04-13 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Hi Jeff, I want to display some pollutants concentrations saved in shapefiles on maps displayed in 3D. You can have a look of what I need here: http://rockware.com/catalog/pages/arcgis3dfeat1.html, in the last image. Le Jeudi 12 Avril 2007 16:40, Jeff Whitaker

Re: [Matplotlib-users] Basemap: how to fill continents and then contourf over filled continents?

2007-04-13 Thread Jeff Whitaker
Simon Kammerer wrote: Hi list, is there a way to fill continents with basemap an then use contourf to draw filled contours over the continents? Its useless when the filled contours cover the whole map, but when only parts of the map are covered with filled contours, it would be nice to

Re: [Matplotlib-users] grd file

2007-04-20 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Hi Jeff, yes, lambert is not the problem, you're right. I have some .grd files with x,y,z values, and I want to project z values on maps and interpolate them. I don't have the dimensions of the shape, but with m.scatter(x, y, z), I see that the scatters are

Re: [Matplotlib-users] Reusing basemap instance

2007-05-08 Thread Jeff Whitaker
Jesper Larsen wrote: On Monday 07 May 2007 16:46, Jeff Whitaker wrote: Jesper: Can you be more specific about why you need a deepcopy? Those methods you mention do not modify the Basemap instance, although they do modify the axes instance they are used with. It shouldn't be a problem

Re: [Matplotlib-users] colormap question

2007-05-24 Thread Jeff Whitaker
Teng Yang wrote: Hello, I have a quick question for you. I was trying to make a color and contour plot. But the problem is that the matplot defaults the colors from the dark to light for the contour values from minimum to maximum, is there any way or commands to reverse this order? I mean

Re: [Matplotlib-users] colormap question

2007-05-24 Thread Jeff Whitaker
Teng Yang wrote: Jeff, This _r command seems not work well. Let me show you the full line of that color map plot, -- contourf(X, Y, Z, v1, cmap=cm.pink) -- Teng: Have you tried contourf(X, Y, Z, v1, cmap=cm.pink_r)

Re: [Matplotlib-users] Basemap - coastlines overlay question

2007-05-29 Thread Jeff Whitaker
James Boyle wrote: Thanks Jeff, it works. where is the reference to explain exactly what 'zorder' does and its proper use? --Jim Jim: See zorder_demo.py in the examples - the comments explain it pretty well. I've cut and pasted below: The default drawing order for axes is patches,

Re: [Matplotlib-users] 2nd y axis, same data

2007-05-30 Thread Jeff Whitaker
James Battat wrote: Hello, (for a 2-d plot) Any example code of how to label the 2nd y-axis using a different scale than the first y-axis for the same dataset? For example, how do you make a plot of distances with the left y-axis in kilometers and the right y-axis in miles? Thanks in

Re: [Matplotlib-users] os x backends

2007-05-31 Thread Jeff Whitaker
Matthew Auger wrote: I've recently needed to use matplotlib remotely from a 'server' running OS X. The server does not have GTK on it, and the server's version of Tk is bound to Aqua instead of X11 and I therefore can't remotely spawn a matplotlib GUI window. My question: Does anyone know

Re: [Matplotlib-users] Basemap reuse

2007-06-01 Thread Jeff Whitaker
Jesper Larsen wrote: Hi matplotlib users, I have a small web application for calculating tsunami travel times (http://ocean.dmi.dk/apps/tsunami). The application uses matplotlib/basemap for producing contour maps of the tsunami travel times. To speed up the response time of the

Re: [Matplotlib-users] Basemap reuse

2007-06-01 Thread Jeff Whitaker
Jesper Larsen wrote: Hi matplotlib users, I have a small web application for calculating tsunami travel times (http://ocean.dmi.dk/apps/tsunami). The application uses matplotlib/basemap for producing contour maps of the tsunami travel times. To speed up the response time of the

Re: [Matplotlib-users] CXX type errors help

2007-06-04 Thread Jeff Whitaker
Stefan Kueppers wrote: Hi all, I am a matplotlib novice and am having problems with imported floats generated by a Perl script using the Maxmind Geo::IP library. I keep getting CXX TypeErrors which I can not seem to eliminate. Any pointers for this novice please? I write files that return

Re: [Matplotlib-users] to build barbs in quiver resultant vector

2007-06-08 Thread Jeff Whitaker
nappie74 wrote: Hi, I'm new in matplolib code, I have matrix of winds vectors derivated from quiver introducing U,V components,and positioning these in a sorted grid X,Y with the command quiver (x, y, u, v,color='r') It's possible to put in the figure the barbs to every arrow vector or

Re: [Matplotlib-users] plotting a contour from dicrete data points

2007-07-03 Thread Jeff Whitaker
Michael Newman wrote: My understanding is the contour method only handles plots of functions, e.g. f(x,y) = z, and not discrete points. I tried looking into this weeks ago, and couldn't find a way to handle discrete points. I'd love to be able to do Kriging or Inverse Distance Weighting

Re: [Matplotlib-users] Finance bars

2007-07-03 Thread Jeff Whitaker
Benoit Donnet wrote: Hey guys, I'm trying to plot quantiles information (percentile 10, 25, 50, 75 and 90). Attached, you'll find a jpged of what I would like to do (this was done using Gnuplot): the vertical line delineates the range from the 10th to the 90th percentile. Small tick

Re: [Matplotlib-users] basemap covering a small area

2007-07-06 Thread Jeff Whitaker
Jesper Larsen wrote: Hi matplotlib users, I am interested in making basemap plots covering only a small area. When I do this the meridians and parallels (and labelling of these) look strange. I have pasted in a simple example below showing the problem (at least on my computer): import

Re: [Matplotlib-users] plotting a contour from dicrete data points

2007-07-07 Thread Jeff Whitaker
Viraj Vajratkar wrote: On 7/3/07, *Jeff Whitaker* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Michael Newman wrote: My understanding is the contour method only handles plots of functions, e.g. f(x,y) = z, and not discrete points. I tried looking into this weeks

Re: [Matplotlib-users] basemap covering a small area

2007-07-09 Thread Jeff Whitaker
Jesper Larsen wrote: Hi Jeff, On Friday 06 July 2007 18:28, Jeff Whitaker wrote: Jesper: Hmm, I guess I never thought anyone would make a map that small. I tweaked some of the parameters to make it work better (svn revision 3470). Here's the diff in case you just want to apply

Re: [Matplotlib-users] INTERPOLATION EXTRA DATA

2007-07-09 Thread Jeff Whitaker
nappie74 wrote: Hi, I have to interpolated extra scattered data added in 2d map with grid regular data. Is there any command to krigged or linear weighted interpolating this values with prexisting grid data and plotting the result using basemap. Thanks in advance. Pie. Pie: Sorry, no

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Jeff Whitaker
Mark Bakker wrote: Viraj and Jeff - Maybe one extension of Jeff's answer. The process works as long as x, y, and z are 2D arrays of the same size and shape. Hence, x and y don't have to form a rectangular grid. I have used this feature regularly for conformal mapping. And it makes a lot

Re: [Matplotlib-users] Basemap:'snapback' on line crossing global plot edge

2007-08-02 Thread Jeff Whitaker
Ted Drain wrote: I don't think so. We always manually check for horizontal and vertical axis crossings and split the line as many times as necessary. One other solution might be to not plot a line, but use scatter to plot the individual points. If there are enough of them, it will look

Re: [Matplotlib-users] How to create 2 bar charts in one graph?

2007-08-18 Thread Jeff Whitaker
Deen Sethanandha wrote: Hello, I am trying to plot 2 bar charts in the same plane like the one in sourceforge. http://sourceforge.net/project/stats/detail.php?group_id=5470ugn=pythonmode=weektype=tracker

Re: [Matplotlib-users] Hovmoller plots

2007-08-22 Thread Jeff Whitaker
Sebastian Krieger wrote: Hi, Does anyone eventually have a sample on how to make Hovmoller plots using matplotlib? Specially with good looking time axis like Ferret does? Thanks Sebastian Sebastian: Don't have a hovmoller example handy, but you can see how to make a nice time axis

Re: [Matplotlib-users] Geo raster

2007-09-20 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Hi all, Can't find any examples on google, then I come here to see if it's possible to display a georeferenced map (geotiff on my side) into Basemap. The PCL module seems great, but there's not useful information on the Trac website. Thanks Lionel: There's

Re: [Matplotlib-users] multiple figures interactively

2007-10-01 Thread Jeff Whitaker
Lee, Young-Jin wrote: Folks, I need your help. I'll explain a little further what happens. Following is a test program,'test.py', and screen shot of the error message. Here, 'test.py' is simple chart of sinusoidal function in http://matplotlib.sourceforge.net/screenshots.html (simple_plot.py),

Re: [Matplotlib-users] images layers

2007-10-04 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Hi all, I think it's a trivial question, but don't find a solution: Drawing an image with imshow (in fact basemap.imshow), I need to put others images on it, but smallers, at specified locations. Is there a way to do so, I have tried with extent parameter, but doesn't

Re: [Matplotlib-users] images layers

2007-10-04 Thread Jeff Whitaker
image with matplotlib (see image_demo3.py and geos_demo_2.py in the basemap examples). -Jeff Le jeudi 04 octobre 2007, Jeff Whitaker a écrit : Lionel: I think you'll need to add other axes to the figure, and then draw the image with axes.imshow. See http://matplotlib.sourceforge.net

Re: [Matplotlib-users] Plotting 3D skymap surfaces

2007-10-10 Thread Jeff Whitaker
Adam Mercer wrote: On 09/10/2007, Jeff Whitaker [EMAIL PROTECTED] wrote: Adam: If you can convert your coordinates into latitudes and longitudes, then you can plot the data with the basemap tookit on your choice of map projection (see http://www.scipy.org/Cookbook/Matplotlib/Maps

Re: [Matplotlib-users] Basemap projection issue

2007-10-11 Thread Jeff Whitaker
Adam Mercer wrote: Hi I'm running into a problem using the mollweide projection, with the following simplified code, my actual code doesn't use random data for values but this is a clearer example to the problem I'm experiencing: lon = numpy.arange(0, 361, 1) lat = numpy.arange(-90, 91, 1)

Re: [Matplotlib-users] Basemap projection issue

2007-10-11 Thread Jeff Whitaker
Adam Mercer wrote: On 11/10/2007, Jeff Whitaker [EMAIL PROTECTED] wrote: Adam: I assume your data is on a latitude-longitude grid? You've asked for a mollweide projection centered on the Greenwich meridian. Your data is not centered on Greenwich - but the error message is trying

Re: [Matplotlib-users] Basemap with origin within the plot

2007-10-12 Thread Jeff Whitaker
a TickFormatter is probably the best solution. -Jeff P.S. Could you send me an example when you're done - perhaps to include in the examples directory? --- Stephen Pascoe +44 (0)1235 445980 British Atmospheric Data Centre Rutherford Appleton Laboratory -Original Message- From: Jeff

Re: [Matplotlib-users] coastlines in matplotlib.toolkits.basemap

2007-10-13 Thread Jeff Whitaker
Charles Seaton wrote: I would like to use a higher resolution coastline than the high resolution coastline optionally provided with (specifically, I would like to use the NOAA/NOS Medium Resolution Coastline). I can see two ways to do this: Option 1) Create a coastline file using the in the

Re: [Matplotlib-users] projections in matplotlib.toolkits.basemap Basemap vs. pyproj.Proj

2007-10-13 Thread Jeff Whitaker
Charles Seaton wrote: I have noticed that matplotlib.toolkits.basemap.Basemap supports a smaller set of projection arguments than the underlying function matplotlib.toolkits.basemap.pyproj.Proj and was wondering if there is a fundamental limitation on the functionality of Basemap that prevents

Re: [Matplotlib-users] Adding a colour bar to a basemap plot

2007-10-13 Thread Jeff Whitaker
Adam Mercer wrote: Hi Is there a way that I can add a colour bar to a basemap plot detailing the value represented by each colour? Cheers Adam Adam: See the basemap examples directory - there's plenty of examples there using pylab.colorbar. -Jeff -- Jeffrey S. Whitaker

Re: [Matplotlib-users] Basemap help, imshow, transform_scaler

2007-10-31 Thread Jeff Whitaker
John wrote: Jeff, Thanks for the quick reply, below is my plotting code. Here are the answers to your question about my arrray: type(Zdat); type(zdat) type 'numpy.ndarray' type 'numpy.ndarray' shape(Zdat); shape(zdat) (180, 360) (596, 596) shape(lons); shape(x) (360,) (596,

Re: [Matplotlib-users] Basemap help, imshow, transform_scaler

2007-10-31 Thread Jeff Whitaker
John wrote: No, it didn't get cut off, I just decided to move that section forward before the code and forgot to delete that line ;) Okay, let's see... 1) Yes, I've left them in for the moment since I saw that they will be ignored, and I'm playing with different projections... seems

Re: [Matplotlib-users] Basemap help, imshow, transform_scaler

2007-10-31 Thread Jeff Whitaker
John wrote: Well, it seems like I'm making progress, but it's stll not the plot I'm hoping to produce. Something seems strange. First, it does create a contourf plot, but I really need to take log(zdata) and use imshow (which seems to handly the INF issue, wheras contourf crashes). On

Re: [Matplotlib-users] Basemap questions

2007-11-02 Thread Jeff Whitaker
Michael Hearne wrote: I have two questions: 1) The fillcontinents() method has a zorder keyword parameter. Is this supposed to work with imshow()? I have the latest tarball from the website, and I can't get my image to paint on top of the continents. 2) Has anyone figured out a way to

Re: [Matplotlib-users] Basemap questions

2007-11-02 Thread Jeff Whitaker
Michael Hearne wrote: Thanks for the reponses so far, but I lied. I have more questions :) 1) How do I get drawmeridians() and drawparallels() to draw solid (i.e., not dashed) lines? setting linestyle='-' does not seem to work. Mike: From the docstring: dashes - dash pattern for

Re: [Matplotlib-users] Basemap questions

2007-11-02 Thread Jeff Whitaker
Michael Hearne wrote: Jeff - I looked at that example file, and I think there's a big difference - your etopo base data set is global, and you can plot over the data in the oceans by setting the mask on all pixels less than zero. My dataset (a map of earthquake shaking) is not global, and

Re: [Matplotlib-users] Basemap questions

2007-11-02 Thread Jeff Whitaker
is the basemap instance, xmin and xmax are instance variables) That's what you have to use - the distance in map projection coordinates, not lat/lon coordinates (although these will be the same if you are using projection='cyl'). -Jeff --Mike On Nov 2, 2007, at 1:33 PM, Jeff Whitaker wrote: Michael

Re: [Matplotlib-users] pcolor

2007-11-19 Thread Jeff Whitaker
Bryan Fodness wrote: I would like to use pcolor with the colors going from white (zero values) to black (largest value). I am using, pcolor(a, shading = 'flat') colorbar() I do not see how to do this. pcolor(a, shading = 'flat', cmap=cm.binary) -Jeff -- Jeffrey S. Whitaker

[Matplotlib-users] imshow zorder

2007-11-20 Thread Jeff Whitaker
If I draw two images with imshow, then set_zorder for one of them to be higher than the other, should that one be the one that displays? for example, with from pylab import * delta = 0.025 x = y = arange(-3.0, 3.0, delta) X, Y = meshgrid(x, y) Z1 = bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) Z2

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-23 Thread Jeff Whitaker
Rich Shepard wrote: On Fri, 23 Nov 2007, Angus McMorland wrote: For parsimony, I think you're probably best off just using the Gaussian equation: def fwhm2k(fwhm): '''converts fwhm value to k (see above)''' return fwhm/(2 * n.sqrt( n.log( 2 ) ) ) def gauss1d(r, fwhm, c):

[Matplotlib-users] [Fwd: [matplotlib-devel] ANN: matplotlib-0.90.0]

2007-11-23 Thread Jeff Whitaker
Basemap 0.9.7 is available for download. http://www.python.org/pypi/basemap/0.9.7 http://sourceforge.net/project/showfiles.php?group_id=80706package_id=142792release_id=555980 http://sourceforge.net/project/showfiles.php?group_id=80706package_id=142792release_id=555980 Windows installers

[Matplotlib-users] ANN: basemap toolkit version 0.9.7 released

2007-11-23 Thread Jeff Whitaker
(sorry for botched subject line in the first message) Basemap 0.9.7 is available for download. http://www.python.org/pypi/basemap/0.9.7 http://sourceforge.net/project/showfiles.php?group_id=80706package_id=142792release_id=555980

Re: [Matplotlib-users] ANN: basemap toolkit version 0.9.7 released

2007-11-26 Thread Jeff Whitaker
Vincent Schut wrote: Jeff Whitaker wrote: There is an extra dependency on the GEOS (Geometry Engine) library (http://geos.refractions.net). The source code is included with basemap, but requires a separate ./configure; make ;make install step before running setup.py. Using the GEOS

Re: [Matplotlib-users] converting GMT color palettes to pylab colormaps

2007-12-05 Thread Jeff Whitaker
Michael Hearne wrote: Does anyone here have any experience converting GMT color palettes into pylab colormaps? I took a stab at it, and the results are not really what I expected. GMT, for the unfamiliar, is a scientific plotting/mapping package that I'm doing my best to rid myself of.

Re: [Matplotlib-users] can matplotlib do this?

2007-12-12 Thread Jeff Whitaker
of the features (this is helped by the fact that the projection is conformal, or shape-preserving). HTH, -Jeff On Dec 11, 2007, at 4:57 PM, Jeff Whitaker wrote: mbauer wrote: Matplotlib users, I looking to tap your wealth of ideas and experience to help solve a problem I'm working

Re: [Matplotlib-users] setting figure extent to only include extent of Axes

2007-12-12 Thread Jeff Whitaker
Michael Hearne wrote: All: I have an issue I'm hoping someone here can help with. I've created a encapsulated postscript figure from pylab (basemap, actually, but it shouldn't make a difference), and I'd like to have the entire saved image be the extent of the axes, with no border

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Jeff Whitaker
Michael Hearne wrote: I am using Basemap, and trying to create two maps: One large-scale map, and a small-scale inset map of the world centered on the location of the large-scale map. My ultimate goal is to create a figure where the inset map is inserted into a corner of the large-scale

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-14 Thread Jeff Whitaker
backends (png, pdf or svg). There's an example of embedded axes at http://matplotlib.sourceforge.net/screenshots.html (axes_demo.py). The inset axes is just drawn on top of the primary axes in the same figure. Is that what you want? -Jeff On Dec 14, 2007, at 12:28 PM, Jeff Whitaker wrote

Re: [Matplotlib-users] Basemap - ImportError: libgeos_c.so.1

2007-12-15 Thread Jeff Whitaker
David Simpson wrote: I just tried to install basemap 0.9.8 but when I run simpletest.py from the examples directory I get: File /usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py, line 31, in module import _geos, pupynere ImportError: libgeos_c.so.1: cannot open

Re: [Matplotlib-users] GEOS 3 and basemap

2007-12-23 Thread Jeff Whitaker
Adam Mercer wrote: Hi Will basemap work with the newly released GEOS-3.0.0, or does it only work with 2.2.3 for now? Cheers Adam Adam: It only works with 2.2.3. I have not been able to make it work with 3.0.0, so I don't know if it ever will. -Jeff -- Jeffrey S. Whitaker

Re: [Matplotlib-users] basemap-0.9.8 failure, linux

2007-12-28 Thread Jeff Whitaker
Evan Mason wrote: Hi all, Just updated basemap from 0.9.4 to 0.9.8 on Mandriva Linux 2008. I also installed basemap-data-fullres-0.9.7. I've noticed there's a couple of recent posts about problems (on Macs) with 0.9.8, the solution being to install setuptools until 0.9.9 comes along;

Re: [Matplotlib-users] basemap-0.9.8 failure, linux

2007-12-28 Thread Jeff Whitaker
Evan Mason wrote: Thank you Jeff. Setting LD_LIBRARY_PATH works fine as a quick test, though that leads me to the ImportError: No module named pkg_resources problem that the other recent posters had. I'll either try setuptools or wait for 0.9.9 to come out - will it be long? -Evan

Re: [Matplotlib-users] Basemap installation question

2008-01-07 Thread Jeff Whitaker
Fought, Richard wrote: Hi all, I'm trying to set up matplotlib with basemap on CentOS 4.6 with python 2.3.4 I installed setuptools 0.6c7, then numpy 1.0.4, then matplotlib 0.91.1_r0, then basemap 0.9.9 (building and installing the GEOS library from source). When I try to run the example

Re: [Matplotlib-users] Basemap installation question

2008-01-07 Thread Jeff Whitaker
Fought, Richard wrote: -Original Message- From: Jeff Whitaker [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 1:26 PM To: Fought, Richard Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Basemap installation question Fought, Richard wrote

[Matplotlib-users] namespace packages (was: Basemap installation question)

2008-01-07 Thread Jeff Whitaker
Fought, Richard wrote: Hi Jeff, Thanks for your response. I might be able to upgrade my prototype machine to Python 2.4, but I'm not sure about my customer's box. Here is the listing from python2.3/site-packages/matplotlib-0.91.1_r0-py2.3-linux-i686.egg/matp lo

Re: [Matplotlib-users] namespace packages

2008-01-07 Thread Jeff Whitaker
John Hunter wrote: On Jan 7, 2008 2:15 PM, Jeff Whitaker [EMAIL PROTECTED] wrote: I think namespace packages were being used before, but were removed. I don't remember why. We removed the namespace packages support because we were using it improperly. To do it correctly would

Re: [Matplotlib-users] IOError: [Errno 2] No such file or directory: 'etopo20data.gz'

2008-01-14 Thread Jeff Whitaker
j. vickroy wrote: Hello, I am a first-time user of matplotlib. When trying to run the plotmap.py example, the following traceback is generated: plotmap.py Traceback (most recent call last): File C:\Documents and Settings\jim.vickroy\My Documents\Projects\High-latitudes

Re: [Matplotlib-users] matplotlib.toolkits.basemap. Basemap overlays?

2008-01-23 Thread Jeff Whitaker
Jim Vickroy wrote: Hello users, I'm using matplotlib.toolkits.basemap.Basemap to plot data on several types of projections at a regular cadence. I am presently regenerating the maps each time new data is to be plotted. Is it possible to generate template map projections once (at

Re: [Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread Jeff Whitaker
David Trémouilles wrote: Hi, I've just start playing with maskedarray (the new implementation) using fresh svn matplotib (0_91 maintenance). Plotting masked array does not behave as I would have expected. Indeed when drawing a line graph the masked walues interrupted the line (see attach

Re: [Matplotlib-users] Basemap 0.9.9 ImportError

2008-02-12 Thread Jeff Whitaker
Ryan May wrote: Ryan: Nothing comes immediately to mind - unless something went wrong with your build.Could you rebuild basemap and send me the a log of the build off-list? Attached. Ryan Ryan: Are you installing from source yourself, or building a patched version

Re: [Matplotlib-users] basemap and omerc

2008-02-13 Thread Jeff Whitaker
Evan Mason wrote: Hi, I am having some problems using the oblique mercator projection in basemap. I want to define a rectangular orthogonal grid, rotated clockwise by about 13 degrees. I want to define grid cells of size, say, about 20x20 km. The script I have so far is below. The

Re: [Matplotlib-users] healpix and basemap

2008-02-13 Thread Jeff Whitaker
jlu wrote: Has anyone had any luck plotting a Healpix (sky pixelization used in astronomy) map using matplotlib basemap... or any other python plotting package for that matter? Cheers, Jessica Jessica: I don't know anything about Healpix, but if you are more specific about what the

Re: [Matplotlib-users] basemap and omerc

2008-02-13 Thread Jeff Whitaker
','vertical'); plot(Lonr, Latr, 'c.') Sorry, I don't have matlab - but it looks at first glance like it ought to be doing the same thing. -Jeff -Evan On Feb 13, 2008 5:14 AM, Jeff Whitaker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Evan Mason wrote: Hi, I am having

Re: [Matplotlib-users] basemap and omerc

2008-02-13 Thread Jeff Whitaker
]) m.drawparallels(arange(0,61,10),labels=[1,0,0,0]) show() Let me know if this fixes it for you. -Jeff On Feb 13, 2008 12:56 PM, Jeff Whitaker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Evan Mason wrote: Hi Jeff By losing the memory I mean that the grid

Re: [Matplotlib-users] import error with Basemap

2008-02-15 Thread Jeff Whitaker
Tim Michelsen wrote: Timmie: It's possible that the windows installer is missing the httplib2 module - I don't have access to windows right now to check. Could you try installing httplib2 and let me know if that fixes it? Installing httplib2 solved the issue. Has this dependancy on

Re: [Matplotlib-users] raster in basemap

2008-02-26 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Hi all, I'm sure it's a trivial question, but can't find any valid answer in the basemap examples directory or with google : I have a georeferenced TIFF file in 'lcc' projection, representing a little portion of France, and I need to put it on a map, resets map

Re: [Matplotlib-users] raster in basemap

2008-02-27 Thread Jeff Whitaker
, Jeff Whitaker a écrit : Lionel Roubeyrie wrote: Hi all, I'm sure it's a trivial question, but can't find any valid answer in the basemap examples directory or with google : I have a georeferenced TIFF file in 'lcc' projection, representing a little portion of France, and I need

Re: [Matplotlib-users] GEOS 3 and basemap

2008-03-03 Thread Jeff Whitaker
Adam Mercer wrote: On Sun, Dec 23, 2007 at 2:40 PM, Jeff Whitaker [EMAIL PROTECTED] wrote: Will basemap work with the newly released GEOS-3.0.0, or does it only work with 2.2.3 for now? Adam: It only works with 2.2.3. I have not been able to make it work with 3.0.0, so I don't

Re: [Matplotlib-users] basemap scalebar

2008-03-04 Thread Jeff Whitaker
Michael Hearne wrote: Jeff - That would replicate the simple scale-bar from GMT. Below is my not-complete attempt at replicating the fancy scale bar. It would need some options for specifying different units (miles, nautical miles, etc.) and perhaps some more attention to spacing of the

Re: [Matplotlib-users] Basemap and imshow

2008-03-06 Thread Jeff Whitaker
Tommy Grav wrote: Is there a way of using imshow together with a basemap? Cheers Tommy Tommy: Use the imshow basemap method, just as you would the pylab version. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1FAX : (303)497-6449 325 Broadway

Re: [Matplotlib-users] Basemap cache

2008-03-06 Thread Jeff Whitaker
Stephane Raynaud wrote: Hi Jeff: how about introducing a cache system for Basemap objects? You recently gave me the idea of using cPickle on Basemap objects, so I implement a very simple cache system that try to check if map has already been serialized and dumped to a cache file, before

Re: [Matplotlib-users] Basemap and imshow

2008-03-06 Thread Jeff Whitaker
map.imshow(coverage,interpolation=nearest,cmap=pylab.cm.hot_r) map.drawmapboundary() pylab.show() On Mar 6, 2008, at 11:10 AM, Jeff Whitaker wrote: Tommy Grav wrote: Is there a way of using imshow together with a basemap? Cheers Tommy Tommy: Use the imshow

Re: [Matplotlib-users] basemap scalebar

2008-03-06 Thread Jeff Whitaker
of it? I suppose if the height becomes a problem, people could use the yoffset keyword... --Mike On Mar 4, 2008, at 6:05 AM, Jeff Whitaker wrote: Michael Hearne wrote: Jeff - That would replicate the simple scale-bar from GMT. Below is my not-complete attempt at replicating the fancy scale

  1   2   3   4   5   6   >