Re: [Matplotlib-users] quiver aspect ratio

2008-09-18 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Eric Firing wrote: >> Jason, >> >>> In looking at the basemap examples (specifically quiver_demo.py), it >>> looks like you specifically rotate the vectors to match up with map >>> coordinates; is that right? Applying to the situation above, do I need >> Yes. >>> to r

Re: [Matplotlib-users] quiver aspect ratio

2008-09-18 Thread jason-sage
Eric Firing wrote: > Jason, > >> >> In looking at the basemap examples (specifically quiver_demo.py), it >> looks like you specifically rotate the vectors to match up with map >> coordinates; is that right? Applying to the situation above, do I need > Yes. >> to rotate my vectors to respect the

Re: [Matplotlib-users] Lines drawn across NaN data

2008-09-18 Thread Goyo
Tanks, Michael. Maybe I'll try to build from SVN this weekend. Goyo El jue, 18-09-2008 a las 09:31 -0400, Michael Droettboom escribió: > Proper NaN handling has been a long and winding road. > > This particuar bug you're running into was fixed about a week *after* > the 0.98.3 release. Here's

Re: [Matplotlib-users] quiver aspect ratio

2008-09-18 Thread jason-sage
First off, in rereading my message, it sounded more abrasive than I intended. I should have asked more questions and complained less; sorry. Eric Firing wrote: > [EMAIL PROTECTED] wrote: > >> >> Is there an easy way to get a correct quiver plot (i.e., correct >> slopes) now if the aspect ratio i

Re: [Matplotlib-users] Information request

2008-09-18 Thread Antoine De Pauw
Jeff, No the example doesn't show that line If I reduce the amount of data, the border will be on every side of the plot I'll show you an orthographic plot with no maskinf tomorrow and you will see the problem easily, it wraps in a white line along the 0° meridian and a white circle in the pol

Re: [Matplotlib-users] Information request

2008-09-18 Thread Jeff Whitaker
De Pauw Antoine wrote: > Jeff, > > Yes they disappear, and they fluctuate with the interpolation method used > > For example, nearest interpolation don't show the line > > Also, if I reduce the grid resolution, the line is thicker, and if I use a > masked array to get rid of undesired values, the b

Re: [Matplotlib-users] Lines drawn across NaN data

2008-09-18 Thread Michael Droettboom
Proper NaN handling has been a long and winding road. This particuar bug you're running into was fixed about a week *after* the 0.98.3 release. Here's the patch: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=6018 So SVN trunk currently works. The patch against 0.9

Re: [Matplotlib-users] Lines drawn across NaN data

2008-09-18 Thread Matthew Tschantz
I worked around this using masked arrays from numpy.ma. import numpy.ma as ma import pylab as pl import numpy as np x = ... x = ma.masked_where(np.isnan(x), x) pl.plot(x) pl.show() On Wed, Sep 17, 2008 at 6:36 PM, Goyo <[EMAIL PROTECTED]> wrote: > I'm having trouble plotting data with NaN value

Re: [Matplotlib-users] adding a filled rectangle

2008-09-18 Thread Michael Droettboom
Can you show us what you've tried thus far? This is a rather open-ended question... Cheers, Mike Ryan Pavlovicz wrote: > Hi. I'd like to add a filled area on my graph to denote the standard > deviation from an average. Additionally, i'd prefer the fill to be a > diagonal hatch. Reading onl

Re: [Matplotlib-users] Polar plot

2008-09-18 Thread Michael Droettboom
It seems you're getting bitten by the brain-dead interpolation of points (which is meant to draw line segments as curves that follow the radii). I have fixed the polar drawing code in SVN r6106 to normalize theta to (0.0 <= theta <= 2pi) before doing the interpolation, which seems to fix your

Re: [Matplotlib-users] How to give a name to a figure?

2008-09-18 Thread John Hunter
On Mon, Sep 15, 2008 at 1:51 PM, Mathieu Dubois <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a (still) beginner in scipy and I have a small problem with figures. > Let me > explain. > > I have to plot a lot of huge data so I have a lot of figures. I have set > title and axes names. All the handles are

Re: [Matplotlib-users] How to give a name to a figure?

2008-09-18 Thread Mathieu Dubois
Hi everyone, Sorry for the delayed response. Thank you very much everyone for the help. Maybe it would be a good idea to add a 'window_title' keyword to figure() (à la matlab ;). kind regards, Mathieu Jae-Joon Lee wrote: >> Kind of awkward, but >> >> fig.canvas.manager.window.wm_title() >> >>

Re: [Matplotlib-users] Information request

2008-09-18 Thread De Pauw Antoine
Jeff, Yes they disappear, and they fluctuate with the interpolation method used For example, nearest interpolation don't show the line Also, if I reduce the grid resolution, the line is thicker, and if I use a masked array to get rid of undesired values, the border shows really strongly Here's

Re: [Matplotlib-users] quiver aspect ratio

2008-09-18 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Recently I noticed that the quiver plots all make the arrows as if the > plot had aspect ratio 1. See, for example, the documentation for quiver: > > In all cases the arrow aspect ratio is 1, so that if *U*==*V* the > angle of the arrow on the plot is 45 degrees C