matplotlib / backend

P

Pierre

Hello,

I'm to plot some results but it doesn't work.
I got this error :

/usr/local/libre_rep/python-2.6.1/RHEL_5__x86_64/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 ('/usr/local/
libre_rep/python-2.6.1/RHEL_5__x86_64/lib/python2.6/site-packages/
matplotlib/mpldata/matplotlibrc')
or with matplotlib.use()

Any idea to fix it ?

Thanks
 
B

baloan

Hello,

I'm to plot some results but it doesn't work.
I got this error :

/usr/local/libre_rep/python-2.6.1/RHEL_5__x86_64/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 ('/usr/local/
libre_rep/python-2.6.1/RHEL_5__x86_64/lib/python2.6/site-packages/
matplotlib/mpldata/matplotlibrc')
or with matplotlib.use()

Any idea to fix it ?

Thanks

Try:

import matplotlib
matplotlib.use('TkAgg')

before coding anything else

from the examples section of the matplotlib documentation
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top