Re: [Matplotlib-users] contour coordinates

2009-01-27 Thread Jeff Whitaker
Eli Brosh wrote: > Hello, > I am trying to extract the coordinates of contour lines. > I tried the following: > > cs = *contour*(Z) > for lev, col in zip(cs.levels, cs.collections): > s = col._segments > > that I found in a previous post (title "contouring", by Jose > Gómez-Dans-2

Re: [Matplotlib-users] Fwd: Croizat on Mac OS X

2009-01-26 Thread Jeff Whitaker
John Hunter wrote: > On Mon, Jan 26, 2009 at 2:14 PM, Nick Matzke wrote: > >> Hi Mauro, >> >> Update: >> >> 1. I went to the place that threw an error in the basemap code: >> >> >> >> "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/site-packages/basemap-0.99.1.0001-py2.5

Re: [Matplotlib-users] How can I modify Basemap GSHHS_f.dat?

2009-01-21 Thread Jeff Whitaker
worldh...@hotmail.com wrote: > Dear Jeff. > > I'd like to modify or create gshhs_f.dat, gshhsmeta_f.dat using gshhs_f.b > > It takes long time to show full resolution basemap, and I want just a > small_specific area. > > How can I modify basemap map data file? > > Any help would be appreciated. >

Re: [Matplotlib-users] Extending a plot outside of axes

2009-01-19 Thread Jeff Whitaker
Einar M. Einarsson wrote: > Hi all. > > is it not possible to extend plot outside of a plot area? To > illustrate what I want > to do take for example the wind barbs example from the matplotlib > gallery. > (see below) > > I only changed line 23 from ax.barbs(X, Y, U, V) to ax.barbs(X, Y, - >

Re: [Matplotlib-users] Basemap.pyproj: towgs84

2009-01-16 Thread Jeff Whitaker
Stephane Raynaud wrote: > Hi, > > it seems that pyproj.Proj does not take into account the "towgs84" > optional parameter. > Here is what I simply tried: > > from mpl_toolkits.basemap import * > lonref = -3. > latref = 47. > > kwproj = dict(proj="lcc", a=6378249.2, b=6356515., x_0=60.,

Re: [Matplotlib-users] Problem with shapelib

2009-01-16 Thread Jeff Whitaker
David Trethewey wrote: > http://www.srcf.ucam.org/cukernow/par1851.shp > > It's a map of the historic parishes of England and Wales if you're > curious. > > David > David: You also need the corresponding .shx and .dbf files to open it - perhaps that is the proble

Re: [Matplotlib-users] Problem with shapelib

2009-01-16 Thread Jeff Whitaker
David Trethewey wrote: > I've had problems trying to read shapefiles using the matplotlib basemap > toolkit > > I can import the shapelib module without error but when I try to read a > shapefile this happens: > > Traceback (most recent call last): > File "C:\Documents and Settings\David\Deskto

Re: [Matplotlib-users] Latest release of Basemap

2009-01-14 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2009/1/13 Jeff Whitaker : > >> Mauro: I'll try to get a new release tomorrow (releasing the source is >> easy, finding the time to make a windows installer is more difficult, since >> I have to borrow someo

Re: [Matplotlib-users] Latest release of Basemap

2009-01-13 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > Sorry for posting this again, but I suppose my previous message may > have got lost among many others. > > I would like to ask you if there are plans to release, as a regular > MS-Windows self-installation file, the lastest version of Basemap > (0.99.3). It

Re: [Matplotlib-users] Error importing Python Imaging Library (PIL)

2009-01-13 Thread Jeff Whitaker
Jon Blower wrote: > Hi all, > > I'm a matplotlib newbie and have recently installed matplotlib as part > of the Python(x,y) distribution for Windows. I want to do some image > manipulation (e.g. basemap.warpimage()) and my initial installation > didn't have the Python Imaging Library (PIL) install

Re: [Matplotlib-users] Plotting difference between contourf and pcolor

2009-01-11 Thread Jeff Whitaker
antonv wrote: > When plotting the same ocean data with contourf or pcolor I noticed a > difference at the edge between ocean area and the land where there is no > data. Basically, contourf is trimming from the edge and when using basemap > you can see the underlying fill color. Is this normal behav

Re: [Matplotlib-users] Basemap datasets

2009-01-11 Thread Jeff Whitaker
David Trethewey wrote: > How do you install the high and full resolution coastline datasets? I've > tried simply downloading them from the internet from > http://www.soest.hawaii.edu/wessel/gshhs/gshhs.html and copying them > into the basemap data directory but this didn't work. > > David > >

Re: [Matplotlib-users] Getting rid of parallels and meridians

2009-01-10 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > How can I get rid, programmatically, of lines drawn with the > drawparallels and drawmeridians in MPL/Basemap? These methods return > dictionaries, but calling the Python clear() method for dictionaries > (and redrawing the figure as usual, of course)

Re: [Matplotlib-users] All kinds of issues inslalling basemap under Ubuntu 8.10 64bit [SEC=UNCLASSIFIED]

2009-01-07 Thread Jeff Whitaker
Scott Collis wrote: > Greetings... > I have been using basemap extensively to do presentation graphics > under quite a wide variety of platforms but I got a new 64bit dual > core laptop recently and have been having all kinds of problems > installing it... > I am using (K)ubuntu 8.10 and have tr

Re: [Matplotlib-users] An issue with Basemap high resolution under Windows

2009-01-07 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > A user just reported to me that he has found a problem when tryng to > create a map using the "high" resolution option under MS-Windows. He > is running Basemap version 0.99.1 with Python 2.5 (from the Enthought > Python Distribution) and got the follo

Re: [Matplotlib-users] All kinds of issues inslalling basemap under Ubuntu 8.10 64bit [SEC=UNCLASSIFIED]

2009-01-07 Thread Jeff Whitaker
Scott Collis wrote: > Greetings... > I have been using basemap extensively to do presentation graphics > under quite a wide variety of platforms but I got a new 64bit dual > core laptop recently and have been having all kinds of problems > installing it... > I am using (K)ubuntu 8.10 and have tr

Re: [Matplotlib-users] getting text size _before_ plotting

2009-01-05 Thread Jeff Whitaker
Michael Hearne wrote: > All: I'm trying to make a map (using Basemap), and plot names of cities > on that map. I'd like to avoid "collisions" of city names (where the > bounding boxes of the text objects would overlap), but I'm having > trouble figuring out how I can do this without actually d

Re: [Matplotlib-users] Azmuthal Equidistant won't plot the entire earth!

2008-12-31 Thread Jeff Whitaker
re provided, the whole world is plotted in a circle with projection='aeqd'. If you can access SVN please try it out and let me know how it works for you. If not, I can provide you with a tarball. The full-disk aeqd will not work right now with ellipsoids, only for perfect spheres.

Re: [Matplotlib-users] Error when running code on remote machine: how can I overpass this?

2008-12-30 Thread Jeff Whitaker
Eric Emsellem wrote: > Hi, > > I am trying to run a relatively large code, which includes some calls to and > import from pylab/matplotlib, on a remote machine: the part of the code I am > running is NOT performing any plot so there is no direct access to a display. > Unfortunately it still crashes

Re: [Matplotlib-users] Azmuthal Equidistant won't plot the entire earth!

2008-12-30 Thread Jeff Whitaker
Rob Frohne wrote: > Hi, > > I think I am running into the same thing John is here. When you want to > display the whole earth in 'aeqd' mode, the projection needs to be onto a > circle. As it is, what is plotted is a square that just fits inside the > circle I want. Here is a link to a photo of

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-29 Thread Jeff Whitaker
masked array. Say the values in the Z array set to 1.e30 over land areas in the CSV file. from numpy import ma Z = ma.masked_values(Z,1.e30) Then plot with contourf as before and the land areas will not be contoured. -Jeff > Thanks, > Anton > > > Jeff Whitaker wrote: > &g

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-28 Thread Jeff Whitaker
- http://code.google.com/p/pygrib2) which you should be able to compile on windows. You'll need the png and jasper (jpeg2000) libraries, however. I recommend (2) - in the time you've already spent messing with that csv file, you could have already gotten a real python grib reader wo

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-24 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Anton, > > 2008/12/23 antonv : > >> Also, because I figured out the data I need and already have the scripts in >> place >> to extract the CSV files I would really like to keep it that way. Would it >> be possible to >> just show me how to get from the csv file

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Jeff Whitaker
lot? > It's a matter of reading the CSV files into 2D arrays (lons,lats,data). I don't have time right now to work that out for your data. Anyway, I think you'll be happier in the long run if you bite the bullet now and learn how to use PyNIO to read the data.

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Jeff Whitaker
antonv wrote: > Hi Jeff, here is a link to the csv file: > http://downloads.75ive.com/testdata.csv > > Thanks again for all your help guys! Really appreciated! > > I meant the original GRIB file ... -Jeff > Ryan May-3 wrote: > >> KURT PETERS wrote: >> >>> Sorry, I meant the griddata mod

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Jeff Whitaker
antonv wrote: > Scott, the Scatter function works great but i am really looking to use the > contourf one. > > Eric, you're right, the way I had it initially it was missing the z value. I > looked at the griddata example and here is the code I came up with: > Since you read your data from a GRIB

Re: [Matplotlib-users] Falling over the edge of the world

2008-12-17 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > When trying to plot a set of points in Basemap using an > Equirectangular projection centered on a longitude different from the > default (using the parameter lon_0 to generate a map centered on the > desired longitude), I end up with a stange plot lik

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Jeff Whitaker
help, > > Roger Roger: Sure, you could do that. I'm not sure why you would want to display an image that's not geographically square as a square though. What's wrong with just letting Basemap show it as a rectange? -Jeff > -- > > On Tue, Dec 16, 2008 at 4:43 AM, Jef

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Jeff Whitaker
Roger André wrote: > Hi All, > > I have some square images which were generated via WMS requests. I > have imported them into Matplotlib via pil_to_array, and then display > them in a Basemap instance where I have defined the projection as: > > m = Basemap(projection='cyl', lon_0=lon_0, llcrnrlo

Re: [Matplotlib-users] Removing continents

2008-12-15 Thread Jeff Whitaker
ry. -Jeff > 2008/12/13 Jeff Whitaker : > >> Mauro: I realize that - but if you can test the SVN version then I can make >> a new release before you release your app. >> >> > > I have not considered this possibility -- thank you ***very much*** again! >

Re: [Matplotlib-users] Removing continents

2008-12-13 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > Thanks for your attention. > > 2008/12/13 Jeff Whitaker : > >> Mauro: Did you update from SVN? If so, can be more specific about what >> didn't work? The return value of fillcontinents should be a list of Polyg

Re: [Matplotlib-users] Removing continents

2008-12-13 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/13 Jeff Whitaker : > >> Mauro: That's a bug - the fillcontinents method was only returning the last >> Polygon instance drawn. I've fixed it in SVN (r6579) to return a list of >> all the Polygon instan

Re: [Matplotlib-users] General problem with Basemap 0.99.2 method returning values

2008-12-13 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > I just noted that the remove() method which worked OK in version 0.99 > of MPL Basemap to remove country borders and rivers is not working > anymore after I upgraded to Basemap version 0.99.2. > > What have changed? > > Thanks in advance. > > Best regards, >

Re: [Matplotlib-users] Removing continents

2008-12-13 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > Am I intending to change the world's geography? No, not quite. I just > would like to know how to deal with the following problem, I have > stumbled upon in MPL/Basemap: I have a line: > > continents = map.fillcontinents(color='coral, lake_color='blue') > > w

Re: [Matplotlib-users] Need some help adjusting placement of colorbar in basemap-derived graphic

2008-12-12 Thread Jeff Whitaker
Roger André wrote: > Hi All, > > I'm very new to Matplotlib and am having some trouble getting a > colorbar to be positioned and sized I want it to. A big part of the > problem is that I have adapted several examples from the Cookbook and > Gallery, just to see if I could roughly approximate wh

Re: [Matplotlib-users] The Blue Marble is upside down!

2008-12-12 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > Attached is the latest version of my Basemap embedded in wxPython > sample application. I have added a check menu option that allows one > to toggle the overlay of the Blue Marble image on and off the Basemap > figure. Everything works well -- except t

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/9 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: The shape of x, y, and dat must all be (nlats, nlons). >> > > I tried to do: > > coords = numpy.loadtxt('grid.dat') > lon = coo

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/9 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Assuming that this is a regular grid (so that using meshgrid makes sense) >> you can >> > > >> using pcolor: >> m.pcolormesh(x,y,dat) >&g

Re: [Matplotlib-users] Just an aside question on Basemap

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > This is just a simple question on plotting points on Basemap (maybe it > will have to be pursued further). I presume points could be plotted > onto maps, no matter what projection is used -- so, I have been > plotting quite well on maps using an Equire

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > Good morning! Here am I again with the first (and perhaps simpler) > part of a potentially long question on plotting gridded data using MPL > (*and* Basemap). > > Most examples I have found of plotting gridded data (using either > MATLAB or MPL) depict highly

Re: [Matplotlib-users] Drawing map scales with Basemap

2008-12-08 Thread Jeff Whitaker
lat/lon coordinates.The map scale really has no meaning in that case. -Jeff > Best wishes, > > 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro Cavalcanti wrote: >> >>> Dear Jeff & ALL, >>> >>> Are there any exampl

Re: [Matplotlib-users] Drawing map scales with Basemap

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > Are there any examples of the use of the drawmapscale() Basemap > method? I can use this myself and will also add any examples to the > forthcoming "Basemap Cookbook" website (for this, I am compiling all > available examples). > > Thanks in advance! >

Re: [Matplotlib-users] General questions about Basemap

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: I just added a 'scale' keyword to bluemarble that downsamples the >> image to speed things up. scale=1.0 (the default) gives the same answer as >>

Re: [Matplotlib-users] General questions about Basemap

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > I am using Basemap version 0.90 with MPL version 0.98.3 under Linux > Ubuntu, both installed from Andrew Straw repository (I just prefer to > install from repositories via apt than directly from the sources, > although in this case I do not have always the la

Re: [Matplotlib-users] A question on Basemap projection

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/7 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, >> llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while >> llcrnrlon=-1

Re: [Matplotlib-users] A question on Basemap projection

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/7 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, >> llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while >> llcrnrlon=-1

Re: [Matplotlib-users] General questions about Basemap

2008-12-07 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeffrey, > > 2008/12/6 Jeff Whitaker <[EMAIL PROTECTED]>: > > >> Mauro: There never actually was a Basemap 0.90 - could you check that >> version number again with >> > > Sorry, my reference to a "0.90&q

Re: [Matplotlib-users] A question on Basemap projection

2008-12-07 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeffrey & ALL, > > Are there any way to plot a Basemap using a standard Equidistant > Cylindrical Projection, but centered on the Pacific Basin instead of > the default plot? This can be done easily with all projections that > require just a center point at lat_0, lon

Re: [Matplotlib-users] General questions about Basemap

2008-12-06 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > I am using Basemap version 0.90 with MPL version 0.98.3 under Linux > Ubuntu, both installed from Andrew Straw repository (I just prefer to > install from repositories via apt than directly from the sources, > although in this case I do not have always the la

Re: [Matplotlib-users] General questions about Basemap

2008-12-05 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > I am using Basemap version 0.90 with MPL version 0.98.3 under Linux > Ubuntu, both installed from Andrew Straw repository (I just prefer to > install from repositories via apt than directly from the sources, > although in this case I do not have always the la

Re: [Matplotlib-users] Toggling country boundaries in MPL Basemap

2008-12-05 Thread Jeff Whitaker
r from map. -Jeff > 2008/12/5 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro Cavalcanti wrote: >> >>> Dear Jeff, >>> >>> Thanks for your fast reply. Unfortunately, I have not been able to get >>> yet working: >>

Re: [Matplotlib-users] Toggling country boundaries in MPL Basemap

2008-12-05 Thread Jeff Whitaker
elf.map.drawcountries() > else: > self.ax.lines.remove(borders) ># redraw the map here... > > But I got a ValueError: list.remove(x): x not in list > > Any hints? > Mauro: Instead of self.ax.lines.remove(borders) I think should simply do borders.remove() -Jeff > With be

Re: [Matplotlib-users] Toggling country boundaries in MPL Basemap

2008-12-05 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > Always engaged in pushing MPL/Basemap ahead of its limits, here am I > again with a humble question: I want to be able to toggle the display > of country boundaries on a map using a menu option on my wxPython > interface. It is quite easy to initially plottin

Re: [Matplotlib-users] Matplotlib mapping toolkit - help

2008-12-03 Thread Jeff Whitaker
Aleš Čadež wrote: > > Dear Jeffrey, > > First of all, sorry to bother you. I'm using matplotlib mapping > toolkit. Can you help me with one problem. I would like to colour > different countries with different colors. Is there any way to do this > with basemap toolkit library? I just can't seem t

Re: [Matplotlib-users] Save a plot background

2008-12-01 Thread Jeff Whitaker
Hrafnkell Pálsson wrote: > Any chance of further help? > John? > > Hrafnkell > Hrafnkell: I'm pretty sure this is a fundamental limitation of canvas.restore_region - everything gets draw on top of it. If I recall correctly, you'd like to save the map with coastlines drawn, and just redraw co

Re: [Matplotlib-users] Save a plot background

2008-11-20 Thread Jeff Whitaker
Hrafnkell Pálsson wrote: > Jeff Whitaker wrote: > >> Hrafnkell: >> >> Had some time this morning, so I used John's method to create a working >> Basemap example: >> >> import matplotlib >> matplotlib.use('Agg') >> from m

Re: [Matplotlib-users] Save a plot background

2008-11-20 Thread Jeff Whitaker
Hrafnkell Pálsson wrote: > > >> This will turn off the rendering of both the background rectangle as >> well as all the ticks and their associated labels, ticklines and >> gridlines. Perhaps Jeff can advise you vis-a-vis the basemap api what >> the equivalent is >> >> > > Ok, I tested your

Re: [Matplotlib-users] Another question

2008-11-20 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > Another (this time possibly quite silly) question: how can I make a > Basemap cover entirely the display area of the GUI backend (ie., > without the top, bottom, left, right spaces)? > > I tried something like: > > self.figure = Figure() > self.figure.subplot

Re: [Matplotlib-users] Save a plot background

2008-11-19 Thread Jeff Whitaker
Hrafnkell Pálsson wrote: > > >> This will turn off the rendering of both the background rectangle as >> well as all the ticks and their associated labels, ticklines and >> gridlines. Perhaps Jeff can advise you vis-a-vis the basemap api what >> the equivalent is >> >> > > Ok, I tested your

Re: [Matplotlib-users] Save a plot background

2008-11-18 Thread Jeff Whitaker
John Hunter wrote: > On Tue, Nov 18, 2008 at 9:41 AM, Hrafnkell Pálsson <[EMAIL PROTECTED]> wrote: > >> Ok, I tried your last suggestion and sure enough it worked. >> But it turns out to solve only half of my problem. I'd like to be able to >> restore the background (using the Agg backend) and t

Re: [Matplotlib-users] Land-Sea masks (mpl_toolkits.basemap)

2008-11-10 Thread Jeff Whitaker
Patrick Marsh wrote: > Greetings, > > I have global data that I would like to plot using > mpl_toolkits.basemap. The catch is that I want to mask out all data > over the ocean. I know there is a function to fill > continents,map.fillcontinents(), but I can't seem to find one for > filling oce

Re: [Matplotlib-users] Python 2.6

2008-11-06 Thread Jeff Whitaker
John Hunter wrote: > On Thu, Nov 6, 2008 at 11:28 AM, KURT PETERS <[EMAIL PROTECTED]> wrote: > >> I recently tried to install for python 2.6 and got an error that the dll is >> incompatible. Is there a version for 2.6? I didn't see one here: >> > > No, we haven't released any binaries for

Re: [Matplotlib-users] basemap with Python26?

2008-10-23 Thread Jeff Whitaker
Yeates, Mathew C wrote: > Hi > I'm getting the traceback > > from mpl_toolkits.basemap import Basemap > > /home/myeates/lib/python2.6/site-packages/httplib2/__init__.py:44: > DeprecationWarning: the sha module is deprecated; use the hashlib module > instead > import sha >

Re: [Matplotlib-users] dynamic basemap

2008-10-23 Thread Jeff Whitaker
John [H2O] wrote: > Hello, > > I'm creating a web application that will take user input from a javascript > map to give me bounding coordinates (i.e. urcrnrlat, urcrnrlon, llcrnrlat, > llcrnrlon) and possibly a switch for polar projection. Other than that I > have no further information. Which pro

Re: [Matplotlib-users] memory leak in basemap 0.98?

2008-10-22 Thread Jeff Whitaker
nsumed per loop: 0.5672k bytes > > Seems basemap is needed to the memory leak. > > Mike Can you send me the script you used to detect the leak? -Jeff > > On Tue, Oct 21, 2008 at 5:36 PM, Jeff Whitaker <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > >

Re: [Matplotlib-users] memory leak in basemap 0.98?

2008-10-21 Thread Jeff Whitaker
Mike Bauer wrote: > I've been testing matplotlib and basemap (0.98.x and 0.99.x via svn > source) and python 2.6 (via svn) on ubuntu 8.04 (AMD-64). > > I noticed that calling basemap in a loop results in a fairly steep > linear increase in memory use; I burn though 6 Gb in a minute. > > Putting a

Re: [Matplotlib-users] finding the intersection of 2 rectangles

2008-10-20 Thread Jeff Whitaker
Mathew Yeates wrote: > Is there an easy way to find the locations in rectangle1 that are > covered by rectangle2? I couldn't find this anywhere. > > Mathew > Mathew: There's nothing included in matplotlib - I recommend Shapely (http://trac.gispython.org/lab/wiki/Shapely). It's an interface t

Re: [Matplotlib-users] updating a basemap

2008-10-12 Thread Jeff Whitaker
t; > but this produces strange results. After a few iterations the line > disappears completely. Is it wrong to use lists when I get xpt and ypt? > > Mathew Don't really understand what you're trying to do here, so I can't comment. -Jeff > > > > > &g

Re: [Matplotlib-users] updating a basemap

2008-10-12 Thread Jeff Whitaker
Mathew Yeates wrote: > Hi > > I see the example of updating a plot in > examples/animation/gtk_timeout.py where the 2 lines > > line.set_ydata(np.random.rand(10)) > fig.canvas.draw_idle() > > > > What is the equivalent when I want to update a Basemap with new > latitudes and longitudes

Re: [Matplotlib-users] contours on unstructured triangle meshes

2008-10-12 Thread Jeff Whitaker
Ian Curington wrote: > Does anyone have extensions or hints on how to create high quality > vector contour plots on unstructured triangle meshes, with values at > nodes? I can convert to structured with griddata, but I much prefer to > get a direct contour from the original triangles. Thanks! I

Re: [Matplotlib-users] coordinate transformations

2008-10-09 Thread Jeff Whitaker
k the proj4 docs and/or mailing list (http://trac.osgeo.org/proj/). pyproj is a wrapper for the proj4 C library. -Jeff > > Jeff Whitaker wrote: >> Mathew Yeates wrote: >>> Hi >>> Are there any modules in matplotlib for coordinate transformations. >>> In parti

Re: [Matplotlib-users] coordinate transformations

2008-10-09 Thread Jeff Whitaker
Mathew Yeates wrote: > Hi > Are there any modules in matplotlib for coordinate transformations. In > particular, I want to go from geodetic to WGS-84. > > Thanks > Mathew > > Mathew: The pyproj module is included in the basemap toolkit and can be accessed with from mpl_toolkits.basemap impor

Re: [Matplotlib-users] How do I make a legend for Line2D objects in Basemap, colored using a colormap?

2008-10-09 Thread Jeff Whitaker
John Hunter wrote: > On Thu, Oct 9, 2008 at 2:40 PM, Zane Selvans <[EMAIL PROTECTED]> wrote: > > >> Hmm. I'll have a look at these. Jeff Whitaker suggested them for >> something else too. I too often feel like I'm just hacking my way >> around in

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread Jeff Whitaker
ib plot, it's associated with a figure instance and an axes instance. -Jeff > > > Jeff Whitaker wrote: >> Mathew Yeates wrote: >>> Hi >>> How easy is it to customize the Basemap class? I seem to remember an >>> example where something is added to the t

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread Jeff Whitaker
Mathew Yeates wrote: > Hi > How easy is it to customize the Basemap class? I seem to remember an > example where something is added to the toolbar but I can't remember > which example it was. What if I want to add a menu at the top of the window? > > Mathew > > Mathew: Basemap doesn't handl

Re: [Matplotlib-users] luminocity plot on hammer projection

2008-10-06 Thread Jeff Whitaker
Eric Firing wrote: > dasratsel wrote: > >> Hi, >> >> I've done some poking an I can't find a way to use imshow() to plot a >> luminosity map on a hammer projection. (looking to generate a plot like >> http://en.wikipedia.org/wiki/Image:WMAP_2008.png). Just setting the >> projection in a call to

Re: [Matplotlib-users] OSX CDAT Matplotlib interactive plots crash

2008-10-02 Thread Jeff Whitaker
Andrew Charles wrote: > The latest beta of CDAT (Climate Data Analysis Tools, widely used in > the atmospheric/oceanographic sciences) is distributed with the > matplotlib source included. > > On OSX, while it seems to compile without a hitch, plotting > interactively (or calling show() ) with the

Re: [Matplotlib-users] OSX CDAT Matplotlib interactive plots crash

2008-10-02 Thread Jeff Whitaker
at, but a lot of people don't want to mess with X11. I like it because you can run stuff on your mac remotely and display windows over an ssh tunnel. -Jeff > > On Oct 2, 2008, at 4:39 AM, Jeff Whitaker wrote: > >> Andrew Charles wrote: >>> The latest beta of CD

Re: [Matplotlib-users] bluemarble image and cyl projection

2008-09-27 Thread Jeff Whitaker
Momme Butenschÿf6n wrote: > When using the cyl projection with the bluemarble image and a map area > is not the global map centered on lon,lat 0,0 I don't get the blue > marbel image to adapt to the actual map. Any suggestions? Momme: Thanks for the report - this is now fixed in SVN, along w

Re: [Matplotlib-users] Information request

2008-09-26 Thread Jeff Whitaker
quality > plots for publications > I think you're already doing everything that can be done - aside from making the plot region smaller so it's inside the convex hull of the data and there are no missing values. I don't see how changing the behavior of imshow would hel

Re: [Matplotlib-users] Information request

2008-09-25 Thread Jeff Whitaker
you shrink the size of the map plotting region so it's fully within the convex hull of the data, the border disappears. -Jeff > -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: jeudi 25 septembre 2008 14:15 > To: De Pauw Antoine > Cc: &#

Re: [Matplotlib-users] [delaunay] boundary specification

2008-09-25 Thread Jeff Whitaker
Paul Langevin wrote: > Hi, > > I'm wondering if it is Paul: No, it's not. > (or when will it be if not) possible to specify the desired boundary > for the triangulated meshes in order to design holes which seems > impossible at the moment (the boundary seems to always be the convex > hull of

Re: [Matplotlib-users] Information request

2008-09-25 Thread Jeff Whitaker
lotlib.sourceforge.net/basemap/doc/html/api/basemap_api.html It fills only the map region (which for some projections, like the orthographic, is not the same as the axes region). -Jeff > > -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: mar

Re: [Matplotlib-users] Information request

2008-09-23 Thread Jeff Whitaker
semap import matplotlib.pyplot as plt import matplotlib.mlab as mlab import numpy as np import os fileName = '20080821.b56' titre='SO2' legende='Delta Brightness Temperature (K)' nbreligne=long(os.stat(fileName)[6])/(8*int(fileName[-2:])) rawfile=np.fromfile(open(fileN

Re: [Matplotlib-users] Information request

2008-09-23 Thread Jeff Whitaker
360; ny = 180 titre='SO2' legende='Delta Brightness Temperature (K)' nbreligne=long(os.stat(fileName)[6])/(8*int(fileName[-2:])) rawfile=np.fromfile(open(fileName,'rb'),' -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: lund

Re: [Matplotlib-users] Information request

2008-09-22 Thread Jeff Whitaker
ta set to missing because they are outside the extent of the data) - but that's just a guess until I can reproduce it. -Jeff > > -Original Message- > From: Antoine De Pauw [mailto:[EMAIL PROTECTED] > Sent: jeudi 18 septembre 2008 17:23 > To: Jeff Whitaker; [EMAIL

Re: [Matplotlib-users] Information request

2008-09-18 Thread Jeff Whitaker
he north and south pole, but I intrepret that to be missing values. However, my eyes are notoriously bad. I'd like to be to run a script that generates the artifacts myself, so I can zoom in and see the problem myself. Does the griddata_demo.py script show the same problem for you

Re: [Matplotlib-users] Information request

2008-09-17 Thread Jeff Whitaker
John Hunter wrote: > On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <[EMAIL PROTECTED]> wrote: > > >> Attached is a screenshot (zoom.png) from the gimp, zoomed in near the >> axes border. The black horizontal line is the top axes border, the >> horizontal grey line is the artifact, the vertical

Re: [Matplotlib-users] Information request

2008-09-17 Thread Jeff Whitaker
John Hunter wrote: > On Wed, Sep 17, 2008 at 11:08 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > >> De Pauw Antoine wrote: >> >>> Jeff, >>> >>> I finally managed to obtain a neat image with imshow and griddata >>> >>> Th

Re: [Matplotlib-users] Information request

2008-09-17 Thread Jeff Whitaker
chimie quantique et photophysique - Quantum chemistry and > photophysics laboratory > Université Libre de Bruxelles - ULB > > > -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: mercredi 17 septembre 2008 13:40 > To: De Pauw Antoine > Cc: '

Re: [Matplotlib-users] Information request

2008-09-17 Thread Jeff Whitaker
what is wrong. Let me suggest again - please post complete, self-contained examples that demonstrate your problem. Did you look at the griddata_demo.py example? -Jeff > > -Original Message- > From: John Hunter [mailto:[EMAIL PROTECTED] > Sent: mercredi 17 septembre 2008 13

Re: [Matplotlib-users] show() won't show

2008-09-16 Thread Jeff Whitaker
David J Strozzi wrote: > Hi, > > I'm a light matplotlib user, and generally haven't had problems the > few times I've installed it. However, now I am. > > I am building matplotlib (and a suite of python tools, including > python itself) on a big computer cluster. I don't have root access > and

Re: [Matplotlib-users] Information request

2008-09-16 Thread Jeff Whitaker
a bit, > testing and deleting.. > > Best regards, > > Antoine De Pauw > Collaborateur de recherches, Informatique - Research collaborator, IT > Laboratoire de chimie quantique et photophysique - Quantum chemistry and > photophysics laboratory > Université Libre de Bruxelles - UL

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-09-13 Thread Jeff Whitaker
Jeremy Conlin wrote: > > > On Fri, Sep 12, 2008 at 4:31 PM, Jeff Whitaker <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Jeremy Conlin wrote: > > First question: > I know I can do pylab.loglog() to get a log-log plot. I woul

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-09-12 Thread Jeff Whitaker
Jeremy Conlin wrote: > First question: > I know I can do pylab.loglog() to get a log-log plot. I would like to > create a log-linear plot. How can I do this? semilogx or semilogy: semilogy (*args, **kwargs) Make a plo

Re: [Matplotlib-users] Information request

2008-09-12 Thread Jeff Whitaker
help(scatter) you will see that scatter takes an antialised keyword antialiasedBoolean or sequence of booleans -Jeff > > -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: jeudi 11 septembre 2008 16:48 > To: De Pauw Antoine > Cc: 'Mat

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
Lat are python arrays, lists or numpy arrays. The Basemap instance __call__ method handles them all. There must be something else going on. It is always better to post actual code so we can see what is happening and test it ourselves. -Jeff > > -Original Message- > From: Jef

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
ysique - Quantum chemistry and > photophysics laboratory > Université Libre de Bruxelles - ULB > > > -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: jeudi 11 septembre 2008 14:10 > To: De Pauw Antoine > Cc: 'Matplotlib Users

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
y = map(lons,lats) plt.scatter(x,y,s=25,c=data,marker='s',edgecolor="None",cmap=plt.cm.jet) plt.colorbar(shrink=0.6) map.drawcoastlines() plt.show() -Jeff > -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: mercredi 10 septemb

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
nd > photophysics laboratory > Université Libre de Bruxelles - ULB > > -Original Message- > From: Jeff Whitaker [mailto:[EMAIL PROTECTED] > Sent: mercredi 10 septembre 2008 16:45 > To: Antoine De Pauw > Cc: Matplotlib Users > Subject: Re: Information request > &g

<    1   2   3   4   5   6   7   >