[Matplotlib-users] savefig very slow

2011-06-15 Thread Francesco Benincasa
Hi all, I've noticed that savefig is very slow when I draw wind (using quiver and quiverkey commands). If I don't draw winds is very fast (2 seconds against 13 seconds). Is possible to make the program faster? Any idea? I use the 'Agg' backend and the latest version of matplotlib. Thank you in

[Matplotlib-users] Memory increasing while plotting in loop

2011-06-15 Thread Alain Pascal Frances
Hi, I have a script that creates and saves figures in a loop. The memory is increasing at each figure and is not released back, rising a Memory error. I used the close() function on the figure object as well as gc.collect(), but no effect. I searched on the net and found a similar problem at

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-15 Thread Daπid
You are importing pylab again before each plot. You have loaded it before. for i,t in enumerate(times): import pylab as pl # --ERASE THIS On Wed, Jun 15, 2011 at 12:10 PM, Alain Pascal Frances frances17...@itc.nl wrote: Hi, I have a script that creates and saves figures in a loop.

[Matplotlib-users] Combine Poly3DCollections to circumvent z-ordering issue

2011-06-15 Thread Jakob Gager
Hi, I searched through various previous posts and it seems that the z-ordering issue with mplot3d has been met many times. When multiple Poly3DCollections are added to an Axes3D object, e.g. via multiple plot_surface commands, the z-ordering routine is not capable of producing the right

Re: [Matplotlib-users] savefig very slow

2011-06-15 Thread Michael Droettboom
Can you provide a standalone script that reproduces the problem? How many points are you plotting? Cheers, Mike On 06/15/2011 06:09 AM, Francesco Benincasa wrote: Hi all, I've noticed that savefig is very slow when I draw wind (using quiver and quiverkey commands). If I don't draw winds

[Matplotlib-users] installation problem on Mac

2011-06-15 Thread Rebecca Gray
Hi all, I am trying to install matplotlib on my Mac OS X 10.6.6. I currently have Python 2.7.2 installed. I tried installing ***matplotlib-1.0.1-python.org-32bit-py2.7-macosx10.3.dmg. The installation appears to run fine, but when I try to import pylab * I am getting the following error message:

Re: [Matplotlib-users] line,

2011-06-15 Thread jonasr
Thank you for the fast reply, according to you line and line, shouldt make a difference in this case, i tried the code with line and line, and it only works with line, ? so you say if i use a=[1,2,3] then b, = a should be 1 ? i just get the error message to many values to unpack ...

Re: [Matplotlib-users] canvas.draw() + pyqt4 memory leak

2011-06-15 Thread Eric Firing
On 06/15/2011 01:15 PM, zb wrote: Hi You could try the example here: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html Look at the memory grow. It does the same in my program. I added a call to cbook.report_memory, and shortened the timer to 0.1 seconds in