Hi Gus,
On Sat, Mar 7, 2009 at 8:26 AM, linuxgus <[email protected]> wrote:
>
> In notebook, after importing pylab, running something like
>
> pylab.plot([1,2,3],[1,2,3])
> pylab.show()
>
> does nothing. Doing it from the command line results in a cryptic
> message about using matplotlib.use() to declare a GUI backend. Can
> somebody show me how make pylab.plot() and pylab.show() work in
> notebook?
In order to get that to work in the notebook, you don't want to use
pylab.show(). Instead, you'll want to use pylab.savefig('fig.png')
which will save the plot to a png file. The notebook will then
automatically detect that a png file has been created and
automatically display it in the browser.
--Mike
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---