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 the

Re: [Matplotlib-users] line,

2011-06-15 Thread Eric Firing
On 06/15/2011 12:53 PM, jonasr wrote: > > Thank you for the fast reply, according to you line and "line," shouldt make > a difference in this case, No, that's not what I said. Using "line" gives you a list with one element, but using "line," gives you the element itself, not the list. > i tried

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

2011-06-15 Thread zb
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. Cheers --- On Wed, 6/15/11, Eric Firing wrote: From: Eric Firing Subject: Re: [Matplotlib-users] canvas.draw() + pyqt4

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 ... efir

Re: [Matplotlib-users] line,

2011-06-15 Thread Eric Firing
On 06/15/2011 12:35 PM, jonasr wrote: > > hello, > > a lot of matplotlib examples i saw included the usage of line, i.e. > > from pylab import * > import time > > ion() > > tstart = time.time() # for profiling > x = arange(0,2*pi,0.01)# x-array > line, = plot(x,sin(x)) > f

[Matplotlib-users] line,

2011-06-15 Thread jonasr
hello, a lot of matplotlib examples i saw included the usage of line, i.e. from pylab import * import time ion() tstart = time.time() # for profiling x = arange(0,2*pi,0.01)# x-array line, = plot(x,sin(x)) for i in arange(1,200): line.set_ydata(sin(x+i/10.0)) # u

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

2011-06-15 Thread Eric Firing
On 06/15/2011 12:13 PM, zb wrote: > Hi > > I have a loop that updates a graph by calling > > self.fig.canvas.draw() > > But every time it updates the graph, the memory usage goes up. If the > program runs for one hour, the memory is gone (things start to run slow > too). I've tried to close() objec

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

2011-06-15 Thread zb
Hi I have a loop that updates a graph by calling self.fig.canvas.draw() But every time it updates the graph, the memory usage goes up. If the program runs for one hour, the memory is gone (things start to run slow too). I've tried to close() objects but the only thing that brings back the ram

[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] 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

[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 output

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 wrote: > Hi, > > I have a script that creates and saves figures in a loop. The memory is >

[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 h

[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