On Tue, Jan 6, 2009 at 01:48, Christopher Barker <chris.bar...@noaa.gov> wrote:
> 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.

yes, pylab glues pyplot and numpy together

> 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')

Ahhh ok, now I got it: I always use the style above, so I didn't know
the difference :) A reference to the doc is:
http://matplotlib.sourceforge.net/faq/usage_faq.html

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

Absolutely!

Your suggestions were really precious: please don't stop the stream,
it anything comes up :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

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

Reply via email to