Christopher Barker wrote: > Eric Firing wrote: >> This is the big difference between most pylab functions and the >> corresponding axes or figure methods that they wrap: the pylab >> functions automatically take care of redrawing the figure if you are >> in an interactive mode. > > Now I feel bad -- I think I encouraged Belinda to work with the OO > interface, because I think it's the better way to go, and, in > particular, translates better to putting MPL code in larger programs. > > However, it is the case that there is a lot of stuff in pylab that makes > it easier to use MPL in interactive mode. I kind of think that's a > shame. I don't think that there is any reason that an OO interface is > less suited to interactive mode.
Even without the automatic-redraw difference, the OO interface requires more typing, and more mental record-keeping, than the pylab interface. Typing "plot(x,y)" is easier to do and remember than creating a figure, adding axes, and then typing "ax1.plot(x,y)". For interactive use, I really don't see any advantage to an OO interface. What advantage do you see? Eric ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users