A couple more thoughts on this:

> 4) Don't put clf() and cla() all over the place. 

absolutely --

my addition to this is to use the OO API more than the pylab one. Put 
all your plotting code into functions that take an axes object as a 
parameter, then go from there. That way you have separated the 
generation of figures (collections os axes) from the plotting itself.

you can do the same at a higher level too -- put your code that creates 
the figures in a function that take a figure as an argument -- then you 
can use the same code to generate PDFs, embed in a GUI, etc.


HTH,

-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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to