Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-21 Thread Utkarsh Upadhyay
+1 Worked for me too. Thanks. ~ musically_ut On Dec 12, 2007 7:45 PM, Armando Serrano Lombillo <[EMAIL PROTECTED]> wrote: > Ok, I've just read the thread "Repeated calls to set_text using TeX > formatting results in RuntimeError" which looked very similar to our problem > and after applying t

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-12 Thread Armando Serrano Lombillo
Ok, I've just read the thread "Repeated calls to set_text using TeX formatting results in RuntimeError" which looked very similar to our problem and after applying the fix which is suggested there by Michael Droettboom (see below), the problem seems to disappear. Let's hope this gets fixed in 0.91.

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-12 Thread Armando Serrano Lombillo
I'm running into the very same problem. I'm using matplotlib from a wxPython application, the same versions as you (Yongtao Cui), and I get the same error (see below) after repainting a figure many times. In my case I plot several figures (16 figures) and I get the error with very few repaintings.

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-04 Thread Yongtao Cui
I don't know why those spaces always don't show up on the mailing list webpage. They looked fine on my gmail page. The 'test' function only has one 'for' loop. The four lines below the 'for' line are all in the loop. On Dec 4, 2007 8:52 PM, Yongtao Cui <[EMAIL PROTECTED]> wrote: > >>> import py

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-04 Thread Yongtao Cui
>>> import pylab >>> def test(n): >>> for i in range(n): >>> f=pylab.figure(1) >>> f.clf() >>> a=f.add_axes([0.2, 0.2, 0.6, 0.6]) >>> a.plot([1,2,3,4,5], 'ro') >>> I tracked down the svn tree. The above script works ok in revision 3737 and before, but crashe

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-02 Thread Fernando Perez
On Dec 2, 2007 2:07 PM, Yongtao Cui <[EMAIL PROTECTED]> wrote: > Could anyone give me some help? No help here, just providing a data point for the devs. Under linux, with In [5]: wx.__version__ Out[5]: '2.8.4.0' In [6]: matplotlib.__version__ Out[6]: '0.91.1' I ran test(100) several times, n

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-02 Thread Yongtao Cui
Below is the minimum code with the right indent import pylab def test(n): for i in range(n): f=pylab.figure(1) f.clf() a=f.add_axes([0.2, 0.2, 0.6, 0.6]) a.plot([1,2,3,4,5], 'ro') On Dec 2, 2007 4:07 PM, Yongtao Cui <[EMAIL PROTECTED]> wrote: > Hi, > >

[Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-02 Thread Yongtao Cui
Hi, I got the following error when clearing and plotting on the same figure for many times. I found the following minimum code to reproduce this error. I am using matplotlib-0.91.1 and wxpython2.8 on windows xp. In the matplotlibrc file, I changed the backend to WXAgg and interactive to True. imp