Feed on

if you’re getting the following errors while trying to use pylab:

>>> pylab.show()
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/__init__.py:41: UserWarning:
Your currently selected backend, ‘agg’ does not support show().
Please select a GUI backend in your matplotlibrc file (‘/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc’)
or with matplotlib.use()
(backend, matplotlib.matplotlib_fname()))

try inserting the following lines in your code:

import matplotlib

(thanks google groups!)

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.