Re: [Matplotlib-users] Rounding issue when plotting

2007-04-24 Thread David Koch
Mhm, thank you for testing - it doesn't work here unless I scale everthing. Bug? Linux, numpy.__version__ '1.0.1' matplotlib.__version__ '0.87.3' - This SF.net email is sponsored by DB2 Express Download DB2 Express C -

[Matplotlib-users] confusion about what part of numpy pylab imports

2007-04-24 Thread Mark Bakker
Hello list - I am confused about the part of numpy that pylab imports. Apparently, pylab imports 'zeros', but not the 'zeros' from numpy, as it returns integers by default, rather than floats. The same holds for 'ones' and 'empty'. Example: from pylab import * zeros(3) array([0, 0, 0]) from

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-24 Thread Matthias Michler
Hi, a friend gave me the little example I attached. He uses 'gca().images = []' to delete the images. I'm not sure about memory usage of that method, but I think deleting images (using clf() or the above way) is quite important, because otherwise one more image is drawn above the existing

Re: [Matplotlib-users] pylab.setp - expected behaviour?

2007-04-24 Thread Jouni K . Seppänen
Matthias Michler [EMAIL PROTECTED] writes: The result really surprises me (using module time): time plot 9.7 sec time setp 9.9 sec- slower than plot! time .set 5.0 sec So my question is: Is this the expected / desired behaviour? I think it is not surprising. The setp function (and

Re: [Matplotlib-users] confusion about what part of numpy pylab imports

2007-04-24 Thread Gary Ruben
Hi Mark, this thread may help: http://thread.gmane.org/gmane.comp.python.numeric.general/13399/focus=13421 Essentially, pylab uses a compatibility layer to ease the task of supporting the three array packages - currently this uses the Numeric version of the ones and zeros functions giving the

[Matplotlib-users] Forcing full value on axis

2007-04-24 Thread Tommy Grav
I have a plot where the x axis ticks are given as 0.1 0.15 0.20 0.025 0.30 0.35 with +3.732e2 given in the lower right of the axis. How can I force the ticks to have 373.3 373.35 and so on? Cheers Tommy -

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-24 Thread Eric Firing
[EMAIL PROTECTED] wrote: I'm producing series of plots (spectograms) in a program loop using imshow and saving each plot to .png. Even though I close() each plot after each savefig(...), the memory does not appear to be freed up, and the memory useage goes up and up as the program runs

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-24 Thread John Hunter
On 4/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm producing series of plots (spectograms) in a program loop using imshow and saving each plot to .png. Even though I close() each plot after each savefig(...), the memory does not appear to be freed up, and the memory useage goes up

Re: [Matplotlib-users] Forcing full value on axis

2007-04-24 Thread John Hunter
On 4/24/07, Tommy Grav [EMAIL PROTECTED] wrote: I have a plot where the x axis ticks are given as 0.1 0.15 0.20 0.025 0.30 0.35 with +3.732e2 given in the lower right of the axis. How can I force the ticks to have 373.3 373.35 It always helps if you give us complete examples

Re: [Matplotlib-users] confusion about what part of numpy pylab imports

2007-04-24 Thread Eric Firing
Gary Ruben wrote: Hi Mark, this thread may help: http://thread.gmane.org/gmane.comp.python.numeric.general/13399/focus=13421 Essentially, pylab uses a compatibility layer to ease the task of supporting the three array packages - currently this uses the Numeric version of the ones and

Re: [Matplotlib-users] animating contours

2007-04-24 Thread Yoav Avitzour
OK, thanks for the info. Is imshow currently the only array imaging routine that supports this functionality? Thanks again, Yoav Eric Firing wrote: The contour routine does not have update functionality similar to that of an image; you have no choice but to generate a new ContourSet

[Matplotlib-users] [Fwd: Re: animating contours]

2007-04-24 Thread Eric Firing
(forgot reply-to-all) ---BeginMessage--- Yoav Avitzour wrote: OK, thanks for the info. Is imshow currently the only array imaging routine that supports this functionality? You can also do it with pcolor, provided you flatten the array. This was probably true with 0.87.7; I have verified