From: Tim L. <ti...@cs...> - 2005-04-27 15:18:07
|
On Wed, 27 Apr 2005, ra...@gm... <ra...@gm...> wrote... > > You can turn interactive mode on and off where desired with pylab.ion > > and pylab.ioff (to suppress draws for a sequence of figure updates) > > and explicitly draw where desired with pylab.draw. > > Now that explicit control is necessary with draw(), could we go one step > further and ask for just one figure/subplot to be updated with the pythonic > API? Perhaps something along the lines of the following: > > myFigure = pylab.figure() > myPlot1 = myfigure.add_subplot(2,1,1) > myPlot2 = myfigure.add_subplot(2,1,2) > doSetup() > for x in arange(y): > z = doSomething() > myPlot1.plot(...) > myPlot1.drawNow() # New API > if hokeyRareCondition: > myPlot2.plot(...) > myPlot2.drawNow() # New API > > I see that there is a function in the figure API for drawing to a renderer but > I do not know how to use it to get the drawNow() effect. Could I +1 this as a request. I had a look into trying to do this myself but got down to the level of renderers and decided to leave it alone, since it's not really critical to me, just a nice feature if it existed. Cheers, Tim > > Regards, > Ravi > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > `- |