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

2009-09-07 Thread tva
Problem solved. The backend was set to Qt4Agg. Once set to TkAgg everything works. I don't get it but it works.. tva wrote: > > Hi Michiel > > thanks, but does that explain why the script works smoothly in 0.98.6 and > earlier versions? > Plotting all the c

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

2009-09-07 Thread tva
m in your script is that the event loop 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
nstead 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.

[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