[Tutor] plotting with python

greg whittier greg at thewhittiers.com
Fri Mar 27 13:58:52 CET 2009


matplotlib and pylab are two APIs to the same library.  Using
matplotlib is a more object-oriented, pythonic API.  pylab is modeled
after the Matlab plotting functions to make it easier for those coming
from that environment.

There's a matplotlib mailing list and you can often figure out what
you need from perusing the examples and the thumbnail gallery.  In
your case, I think
http://matplotlib.sourceforge.net/examples/api/two_scales.html is what
you want.

On Fri, Mar 27, 2009 at 7:46 AM, Bala subramanian
<bala.biophysics at gmail.com> wrote:
> Friends,
> I am not sure if this forum is appropriate to ask question about a
> particular package. After getting suggestions from some of you for python
> based plotting, I have just started with matplotlib. I am bit confused with
> the relation between matplotlib and pylab.
>
> In the matplotlib homepage, example plots are shown with both
> matplotlib.pyplot and pylab. Inaddition within matplotlib, there is a module
> called matplotlib.pylab
>
> i) matplotlib and pylab -> both are same or different modules ?. Is there
> any advantage of using one over the other ?
>
> ii) Is it like i can plot the graphs with both matplotlib and pylab ?
>
> iii) can some kindly show me an example of ploting multy Y axes plot, ie
> NXY.
>
> Thanks in advance,
> Bala
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>


More information about the Tutor mailing list