Sandro Tosi wrote:
> So you suggest to start from matplotlib.pyplot and not from pylab?

actually, I think matpoltlib.pyplot still has all of pylab in it, just 
not all of numpy also. So yes, do that, but what I meant was to focus on 
using the OO interface, rather than the state machine interface:

rather than 'gca', 'gcf', etc, store references to the figures and axis, 
etc:

this kind of thing:

fig = plt.Figure()

ax = fig.add_subplot(111)
ax.plot([1,2,3])

ax.set_title('hi mom')

ax.grid(True)

ax.set_xlabel('time')
ax.set_ylabel('volts')

While we are at it, discourage the use of "import *" !

-Chris







-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to