, 2009 6:53 PM
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] a simple examplr showing numpy and matplotlib
failing
I found a workaround. If I replace
plot_data=data[0,0:,0]
With
plot_data=numpy.copy(data[0,0:,0])
Everything is okay.
I am on Windows XP 64 with 4 Gigs ram
:
numpy-discussion-boun...@scipy.org] *On Behalf Of *Yeates, Mathew C (388D)
*Sent:* Tuesday, December 01, 2009 6:53 PM
*To:* Discussion of Numerical Python
*Subject:* Re: [Numpy-discussion] a simple examplr showing numpy and
matplotlib failing
I found a workaround. If I replace
plot_data
Click on Hello World twice and get a memory error. Comment out the ax.plot
call and get no error.
import numpy
import sys
import gtk
from matplotlib.figure import Figure
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as
FigureCanvas
ax=None
fig=None
canvas=None
def
Hmm... works for me. What platform, with how much physical and virtual RAM?
One thing you may want to try is to completely destroy the figure each time:
if fig:
fig.clf()
fig=None
Mike
Yeates, Mathew C (388D) wrote:
Click on “Hello World” twice and get a memory error. Comment out the
Hi Mathew,
I saw your email and I was curious about it. I tried your code and it
does work for me without any problem.
Santanu
On Tue, Dec 1, 2009 at 2:58 PM, Michael Droettboom md...@stsci.edu wrote:
Hmm... works for me. What platform, with how much physical and virtual RAM?
One thing
examplr showing numpy and matplotlib
failing
Hi Mathew,
I saw your email and I was curious about it. I tried your code and it does
work for me without any problem.
Santanu
On Tue, Dec 1, 2009 at 2:58 PM, Michael Droettboom
md...@stsci.edumailto:md...@stsci.edu wrote:
Hmm... works for me. What