Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pylab documentation

I visited the scipy site for PyLab. I could not find its documentation there. The matplotlib site also does not provide any information on it.

Where can I find a tutorial/documentation on PyLab?

like image 311
praxmon Avatar asked Oct 21 '25 13:10

praxmon


1 Answers

Pylab is basically just Numpy and Matplotlib under a unified namespace. Learn about either of those and you will understand Pylab.

If you want to plot things in scripts it is generally preferred that you use import matplotlib.pyplot instead of import pylab, but really the choice is up to you.

If you want to have interactive plotting (for instance, by calling ipython --pylab) then pylab is the way to go. However pyplot can also be put in an interactive mode using pyplot.ion().

Some more information can be found here:

What is the difference between pylab and pyplot?

Exact semantics of Matplotlib's "interactive mode" (ion(), ioff())?

like image 161
ebarr Avatar answered Oct 24 '25 02:10

ebarr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!