Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread Jae-Joon Lee
On Mon, Sep 7, 2009 at 1:02 PM, tva wrote: > > Problem solved. The backend was set to Qt4Agg. Once set to TkAgg everything > works. > I don't get it but it works.. > > I think an explicit call of draw() in the interactive mode (e.g. with ipython -pylab) should update the figure canvas imm

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread tva
never kicks in. >> Unfortunately, Python has no support for event loops in general, which >> makes this hard to solve. One option is to use raw_input() between calls >> to plot(), but then each time you have to hit to get the script >> to proceed. >> >> --

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread tva
> --Michiel. > > > --- On Mon, 9/7/09, tva wrote: > >> From: tva >> Subject: Re: [Matplotlib-users] cannot plot in loops with matplotlib >> 0.99. 0.98 works fine >> To: matplotlib-users@lists.sourceforge.net >> Date: Monday, September 7, 2009, 3:17 AM &g

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread Michiel de Hoon
s this hard to solve. One option is to use raw_input() between calls to plot(), but then each time you have to hit to get the script to proceed. --Michiel. --- On Mon, 9/7/09, tva wrote: > From: tva > Subject: Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. &

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread tva
Thanks JJ, but unfortunately this is not the solution. draw() gives the same result. - and I am running this as a script (running it from ipython shell). Any clue? Jae-Joon Lee wrote: > > I presume you're running that script in interactive shell? > Try draw() instead of show(). > > Regards

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-06 Thread Jae-Joon Lee
I presume you're running that script in interactive shell? Try draw() instead of show(). Regards, -JJ On Sun, Sep 6, 2009 at 3:06 PM, tva wrote: > > Hi all > > with matplotlib 0.98.5.3 this script will draw new lines as the scrips is > running: > > from pylab import * > x = arange(0,2*pi,0.01)

[Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-06 Thread tva
Hi all with matplotlib 0.98.5.3 this script will draw new lines as the scrips is running: from pylab import * x = arange(0,2*pi,0.01) for i in arange(1,20): y=sin(x+i) plot(x,y) # update the data show() with matplotlib 0.99, the exact same script ru