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<t...@brygge.dk> 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) > 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 runs to the end without plotting > and then plots all the lines. This is just a trivial example but for some > applications it is useful to monitor the evolution of curves as the script > is running - allows me to update parameters if something diverges. > Any idea why there is such a difference between 0.98.5.3 and 0.99 ?? > -- > View this message in context: > http://www.nabble.com/cannot-plot-in-loops-with-matplotlib-0.99.-0.98-works-fine-tp25320454p25320454.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users