Re: [Matplotlib-users] Information request

2008-09-17 Thread De Pauw Antoine
generated is here: http://www.kirikoo.net/images/5shrad-20080917-102544.png Also, I couldn't find any way to reduce the colorbar font size The colorbar method returns a matplotlib.colorbar.Colorbar instance, which has matplotlib.axes.Axes instance stored as an attribute. Thus you can do: cb

Re: [Matplotlib-users] Information request

2008-09-17 Thread Jeff Whitaker
[EMAIL PROTECTED] wrote: The image generated is here: http://www.kirikoo.net/images/5shrad-20080917-102544.png Also, I couldn't find any way to reduce the colorbar font size The colorbar method returns a matplotlib.colorbar.Colorbar instance, which has matplotlib.axes.Axes instance

Re: [Matplotlib-users] Information request

2008-09-17 Thread De Pauw Antoine
/images/5shrad-20080917-102544.png Also, I couldn't find any way to reduce the colorbar font size The colorbar method returns a matplotlib.colorbar.Colorbar instance, which has matplotlib.axes.Axes instance stored as an attribute. Thus you can do: cb = colorbar(something) for t

Re: [Matplotlib-users] Information request

2008-09-17 Thread De Pauw Antoine
/images/5shrad-20080917-151205.png I have added zero-value points at the corners of the map, thinking that interpolation simply didn't do its job between the points because of a lack of data, but it's still the same The masked array has been replaced with a replace by zero if superior to -1.2 thing

Re: [Matplotlib-users] Polar plot

2008-09-17 Thread Tony S Yu
On Sep 17, 2008, at 1:59 AM, jan gillis wrote: Hello, I have a problem with polar plot, if i run the following code in matplotlib 0.98.3, polar plot is drawing a extra circle to go from angle -3.14159265 to angle 3.03753126. Is there a solution for this problem?

Re: [Matplotlib-users] Information request

2008-09-17 Thread John Hunter
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 dashed line is a grid line. I

[Matplotlib-users] adding a filled rectangle

2008-09-17 Thread Ryan Pavlovicz
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 online, i found that there is a 'Rectangle' class, but i can't get this to work. Can someone suggest a good way to get the results

Re: [Matplotlib-users] save or pickle figure object

2008-09-17 Thread Eric Firing
Ted Drain wrote: We have some experience maintaining persistent object storage over long periods of time. The best solution we've found is to do something like this: - create a read/write method on each class. Every class that needs to be stored must have this. This includes class you

Re: [Matplotlib-users] save or pickle figure object

2008-09-17 Thread Ted Drain
I agree completely - I was just pointing that it is possible. I think what people might not be aware of is that it's really an all or nothing proposition. You either jump in completely and pay the large cost to handle this in a maintainable, scalable way or don't do it at all. All of the quick

Re: [Matplotlib-users] save or pickle figure object

2008-09-17 Thread B Clowers
Josef, I too have been interested in such a feature for matplotlib and have made some (albeit lame) stabs at finding a solution.  I started a project on google code that has some very limited capacity to save line plots and the necessary data arrays from matplotlib into an hdf5 file for later

Re: [Matplotlib-users] save or pickle figure object

2008-09-17 Thread Friedrich Hagedorn
On Wed, Sep 17, 2008 at 12:55:40PM -0700, Ted Drain wrote: I agree completely - I was just pointing that it is possible. I think what people might not be aware of is that it's really an all or nothing proposition. You either jump in completely and pay the large cost to handle this in a

[Matplotlib-users] Lines drawn across NaN data

2008-09-17 Thread Goyo
I'm having trouble plotting data with NaN values. My plot has lines and markers and usually both are skipped for NaN values. But when I have more than 127 data a line is drawn from the last non-NaN to the next. I read somewhere about a similar issue (maybe here? sorry I can't find it just now),

Re: [Matplotlib-users] adding a filled rectangle

2008-09-17 Thread Jae-Joon Lee
import matplotlib.pyplot as plt import matplotlib.patches as mpatches xy = 0.3, 0.3, width, height = 0.2, 0.5 p = mpatches.Rectangle(xy, width, height, facecolor=orange, edgecolor=red) plt.gca().add_patch(p) plt.draw() A Rectangle is a patch class and (although I'm not sure) I don't think

Re: [Matplotlib-users] Square Axes

2008-09-17 Thread Jae-Joon Lee
Adjusting a physical size of the axes is a bit tricky in matplotlib, as the axes has an fixed position in normalized figure coordinate. But, I guess setting the axes aspect ratio in physical size is doable relatively easily, at least if your x,y axis are in linear scales. For example, if you want

[Matplotlib-users] quiver aspect ratio

2008-09-17 Thread jason-sage
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 CCW from the *x*-axis. This seems