Re: [Matplotlib-users] wx backend scaling problem

2008-03-11 Thread Gary Ruben
Hi Michael, Michael Droettboom wrote: Well, that was a good puzzle! Glad I got your neurons firing. This seems like a safe fix to me, but anyone who currently extends the Wx Frame (meaning the whole window etc.) and is unknowingly compensating for this effect may have problems after my

[Matplotlib-users] Unable to Plot Date Axis Due To TypeError: a float is required

2008-03-11 Thread Chris Spencer
I'm getting a nonsensical error when attempting to make a simple plot with a date axis. Googling shows this similar errors, but none with a date axis. What could be causing this? import datetime from pylab import figure, show fig = figure() ax = fig.add_subplot(111) dates =

Re: [Matplotlib-users] Major Issue with 0.91.2 and Python-2.5

2008-03-11 Thread Michael Droettboom
I suspect there is an .afm font file on your new system that is untested with matplotlib and exhibiting something new. I would first try to track down which font file it is, and then send it to me off list and I'll have a look at what might be tripping up matplotlib. Cheers, Mike Rich Shepard

Re: [Matplotlib-users] [newbie] live plots of multiple lines

2008-03-11 Thread Chris Withers
Matthias Michler wrote: plot([x1], [y1], bo, [x2], [y2], r+) This didn't work :-S - the first time I call show(), execution never comes back to my script so the code never gets to plot any further points - if I put the show after the plotting loop (which means I don't get the live plotting

Re: [Matplotlib-users] [newbie] live plots of multiple lines

2008-03-11 Thread Alan G Isaac
On Tue, 11 Mar 2008, Chris Withers apparently wrote: the first time I call show() http://matplotlib.sourceforge.net/faq.html#SHOW hth, Alan Isaac - This SF.net email is sponsored by: Microsoft Defy all challenges.

Re: [Matplotlib-users] [newbie] live plots of multiple lines

2008-03-11 Thread Chris Withers
Alan G Isaac wrote: On Tue, 11 Mar 2008, Chris Withers apparently wrote: the first time I call show() http://matplotlib.sourceforge.net/faq.html#SHOW Okay, that tells me that I prettymuch don't want to be using show(), but I don't think I want interactive mode either... What I'm trying to

Re: [Matplotlib-users] colorbar problem

2008-03-11 Thread humufr
Le Sunday 09 March 2008 14:32:05 Eric Firing, vous avez écrit : [EMAIL PROTECTED] wrote: Hello, I have some stupid questions about how to use colorbar. 1) I would like to be able to put the colorbar where I went: top, bottom, left, right. For what I see I

Re: [Matplotlib-users] [newbie] live plots of multiple lines

2008-03-11 Thread Chris Withers
Ryan May wrote: Right, the show() command starts the GUI's mainloop, which blocks execution of the script until you close the figure. What you probably want is something like the dynamic_demo.py example. ...which barfes for me: Traceback (most recent call last): File dynamic_demo.py,

[Matplotlib-users] contour question

2008-03-11 Thread humufr
Hello, I'm using a svn version of matplotlib and the API changed for contour. I want to have the coordinate of the contour. Before Eric Firing (I think) gave a solution to do it: val = contour(xRange,yRange,delchi2,[1]) t = asarray(val.collections[0].get_verts()) but now

[Matplotlib-users] Basemap, Mercator Projection and pcolor

2008-03-11 Thread Rich Fought
Hi, I've successfully plotted gridded data on a basemap cyl projection using pcolor: mp = Basemap(projection=cyl, resolution=l, llcrnrlon=0.0, urcrnrlon=30.0, llcrnrlat=-5.0, urcrnrlat=5.0) pc = mp.pcolor(X, Y, zvalsm, cmap=cm.jet) However, if I simply I change the projection type to merc,

Re: [Matplotlib-users] contour question

2008-03-11 Thread Michael Droettboom
.get_paths() returns a list of Path objects. (See path.py). For each Path object, you can get an Nx2 array of vertices from its vertices member. You can also use the iter_segments method to iterate through each of its vertices, but that's primarily only useful when there may be bezier

Re: [Matplotlib-users] Basemap, Mercator Projection and pcolor

2008-03-11 Thread Jeff Whitaker
Rich Fought wrote: Hi, I've successfully plotted gridded data on a basemap cyl projection using pcolor: mp = Basemap(projection=cyl, resolution=l, llcrnrlon=0.0, urcrnrlon=30.0, llcrnrlat=-5.0, urcrnrlat=5.0) pc = mp.pcolor(X, Y, zvalsm, cmap=cm.jet) However, if I simply I change the

Re: [Matplotlib-users] Basemap, Mercator Projection and pcolor

2008-03-11 Thread Rich Fought
Rich: What are X and Y set to? They should be the map projection coorindates of the grid. If they are latitudes and longitudes, this will work for 'cyl' but not 'merc'. For 'merc', you must convert the lats and lons to x and y using x, y = mp(lon, lat) -Jeff Thanks Jeff, that did

[Matplotlib-users] pcolor and

2008-03-11 Thread mbauer
Matplotlib users, I've been using pcolor and pcolormesh to plot results from the NCEP Reanalysis. I've noticed that the plotted values are slightly offset. Googling around I see that matlab has this quality, which I assume matplotlib inherited. # If your georeferenced image is in

Re: [Matplotlib-users] pcolor and

2008-03-11 Thread Jeff Whitaker
mbauer wrote: Matplotlib users, I've been using pcolor and pcolormesh to plot results from the NCEP Reanalysis. I've noticed that the plotted values are slightly offset. Googling around I see that matlab has this quality, which I assume matplotlib inherited. # If your

Re: [Matplotlib-users] [newbie] live plots of multiple lines

2008-03-11 Thread Chris Withers
Chris Withers wrote: Matthias Michler wrote: plot([x1], [y1], bo, [x2], [y2], r+) This didn't work :-S - the first time I call show(), execution never comes back to my script so the code never gets to plot any further points Okay, thanks to Ryan, I now have this point fixed, however,

[Matplotlib-users] variable line thickness in a plot

2008-03-11 Thread eliss
Hi, does anyone know of a way to create lines with variable thickness and color when doing a plot? Basically, I'd like to have a third dimension represented using thickness. The API for the plot function states that the line thickness can only be a single floating point number. Thanks

Re: [Matplotlib-users] variable line thickness in a plot

2008-03-11 Thread Troels Kofoed Jacobsen
On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote: Hi, does anyone know of a way to create lines with variable thickness and color when doing a plot? Basically, I'd like to have a third dimension represented using thickness. The API for the plot function states that the line

Re: [Matplotlib-users] variable line thickness in a plot

2008-03-11 Thread Steve Schmerler
On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote: The API for the plot function states that the line thickness can only be a single floating point number. Really? Try plot([1,2,3], lw=math.pi) cheers, steve -

Re: [Matplotlib-users] variable line thickness in a plot

2008-03-11 Thread eliss
On 3/11/08, Troels Kofoed Jacobsen [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote: Hi, does anyone know of a way to create lines with variable thickness and color when doing a plot? Basically, I'd like to have a third dimension represented using

Re: [Matplotlib-users] variable line thickness in a plot

2008-03-11 Thread Troels Kofoed Jacobsen
On Tue, Mar 11, 2008 at 01:23:04PM -0700, eliss wrote: On 3/11/08, Troels Kofoed Jacobsen [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote: Hi, does anyone know of a way to create lines with variable thickness and color

Re: [Matplotlib-users] variable line thickness in a plot

2008-03-11 Thread Steve Schmerler
On Tue, Mar 11, 2008 at 01:23:55PM -0700, eliss wrote: On 3/11/08, Steve Schmerler [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote: The API for the plot function states that the line thickness can only be a single floating point number. Really?