From: John H. <jdh...@ac...> - 2004-11-11 15:49:55
|
>>>>> "Shin" == Shin <sd...@em...> writes: Shin> My default mode of matplotlib is interactive mode, but in Shin> some programs I like to turn off the interactive model Shin> temporarily so postpone drawing until I call show(), because Shin> of performance concern. Any way for swith the mode in a Shin> script? Thanks in advance. from matplotlib import interactive from matplotlib.matlab import * plot([1,2,3]) interactive(False) # turn off interactive mode xlabel('hi mom') ylabel('bye') title('all done') interactive(False) # turn it back on draw() # draw the canvas JDH Shin> ------------------------------------------------------- This Shin> SF.Net email is sponsored by: Sybase ASE Linux Express Shin> Edition - download now for FREE LinuxWorld Reader's Choice Shin> Award Winner for best database on Linux. Shin> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click Shin> _______________________________________________ Shin> Matplotlib-users mailing list Shin> Mat...@li... Shin> https://lists.sourceforge.net/lists/listinfo/matplotlib-users |