Re: [Matplotlib-users] multiple figures interactively

2007-09-26 Thread Wolfgang Kerzendorf
This might help you it destroys the whole window: pylab.get_current_fig_manager().destroy() and then you open it again with show Lee, Young-Jin wrote: > > Hi, > > I ’m writing a python program that draws figures one by one > interactively with the user’s input in dos mode. Basically, I give the >

Re: [Matplotlib-users] plot cdf

2007-09-26 Thread Robert Kern
Alan Isaac wrote: > Is there a standard function or practice for > plotting the CDF of a series? (I am aware > of the output of hist.) import numpy as np from matplotlib import pylab x = ... # whatever n = len(x) x2 = np.repeat(x, 2) y2 = np.hstack([0.0, np.repeat(np.arange(1,n) / float(n), 2),

Re: [Matplotlib-users] plot cdf

2007-09-26 Thread Tommy Grav
On Sep 26, 2007, at 5:09 PM, Alan Isaac wrote: > Is there a standard function or practice for > plotting the CDF of a series? (I am aware > of the output of hist.) Without really knowing what CDF is (I am assuming it is Cumulative Density Fucntion or something similar). I would suggest taking a

Re: [Matplotlib-users] Equal Aspect Ratio with colorbar

2007-09-26 Thread Eric Firing
Tom Johnson wrote: > How can I keep a 1:1 aspect ratio after adding a colorbar? After adding the colorbar, try axis('scaled') or axis('image') or axis('equal') Or for full control use the set_aspect() method of the Axes object for your plot. There is also an axis() method corresponding to the

[Matplotlib-users] plot cdf

2007-09-26 Thread Alan Isaac
Is there a standard function or practice for plotting the CDF of a series? (I am aware of the output of hist.) Thank you, Alan Isaac - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-26 Thread Darren Dale
On Wednesday 26 September 2007 03:30:41 pm Tom Johnson wrote: > Any comments on this? The behavior is, at best, inconsistent. At worst, > the current behavior is incorrect, as it is not possible to have a white > facecolor when using usetex/xpdf. I used your script to create the eps file, and cr

[Matplotlib-users] Equal Aspect Ratio with colorbar

2007-09-26 Thread Tom Johnson
How can I keep a 1:1 aspect ratio after adding a colorbar? ratio='exact' seems to include the colorbar in the calculations. For example, if I have a circle and color itI want it to still look like a circle (rather than an ellipse) after adding the colorbar. ~t ---

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-26 Thread Tom Johnson
Any comments on this? The behavior is, at best, inconsistent. At worst, the current behavior is incorrect, as it is not possible to have a white facecolor when using usetex/xpdf. On 9/23/07, Tom Johnson <[EMAIL PROTECTED]> wrote: > > On 9/23/07, Tom Johnson <[EMAIL PROTECTED]> wrote: > > > > > >

Re: [Matplotlib-users] matplotlib - representation of nan values in 2D

2007-09-26 Thread Eric Firing
David Huard wrote: > Hi Dirk, > > If you haven't already done so, look at the numpy.ma > module. It provides a masked array object that deals gracefully with > missing values. To the best of my knowledge, most matplotlib functions > understand masked arrays and deal with it a

Re: [Matplotlib-users] matplotlib - representation of nan values in 2D

2007-09-26 Thread David Huard
Hi Dirk, If you haven't already done so, look at the numpy.ma module. It provides a masked array object that deals gracefully with missing values. To the best of my knowledge, most matplotlib functions understand masked arrays and deal with it accordingly, exception made of those requiring a full

[Matplotlib-users] multiple figures interactively

2007-09-26 Thread Lee, Young-Jin
Hi, I 'm writing a python program that draws figures one by one interactively with the user's input in dos mode. Basically, I give the program a decision after each figure and then it draws the next one. After the first figure, it got very much slowed down for the second one and crashed for the

Re: [Matplotlib-users] matplotlib - representation of nan values in 2D

2007-09-26 Thread Ryan May
Dirk Zickermann wrote: > Dear matplotlib group, > > for the represenation of 2d measurement data I use the contourplot > function from matplotlib. Some points in this map are not measurabel, > therefore I get a non numerical value (nan) output. > > From this data I want to generate a map and a hi

[Matplotlib-users] matplotlib - representation of nan values in 2D

2007-09-26 Thread Dirk Zickermann
Dear matplotlib group, for the represenation of 2d measurement data I use the contourplot function from matplotlib. Some points in this map are not measurabel, therefore I get a non numerical value (nan) output. >From this data I want to generate a map and a histogram plot. This works fine, as lo

Re: [Matplotlib-users] ploting date

2007-09-26 Thread John Hunter
On 9/26/07, JeanMichel FRANCOIS <[EMAIL PROTECTED]> wrote: > Hi there! > I m trying to make a figure , adding a subplot in it, and then specify the X > axis with date. I don't have anything to plot at the moment, i just want to > generate a subplot with axes X and Y up and ready. > > All tutorials

[Matplotlib-users] ploting date

2007-09-26 Thread JeanMichel FRANCOIS
Hi there!   I m trying to make a figure , adding a subplot in it, and then specify the X axis with date. I don't have anything to plot at the moment, i just want to generate a subplot with axes X and Y up and ready. All tutorials i have read directly plot sth on the subplot directly, but i don