pylab quick reference? (matplotlib)

Arnaud Delobelle arnodel at googlemail.com
Wed Apr 22 22:17:37 CEST 2009


Esmail <esmail.js at gmail.com> writes:

> norseman wrote:
>>
>> Just out of curiosity,  have you tried:
>>
>> import pylab
>> help(pylab)
>>
>> The next step is to print it, 
>
> Ah .. I didn't know this, great idea. This is what I used to get
> the contents into a file for printing
>
>  python -c 'import pylab;  help(pylab)' > pylab.txt

Do you know pydoc?

>From the (shell) command line, try:

$ pydoc pylab             # piped through less
$ pydoc pylab > pylab.txt # stored in a file
$ pydoc -w pylab          # Creates a 'pylab.html' file
wrote pylab.html

-- 
Arnaud



More information about the Python-list mailing list