Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > matplotlib / backend

Reply
Thread Tools

matplotlib / backend

 
 
Pierre
Guest
Posts: n/a
 
      08-25-2009
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
 
Reply With Quote
 
 
 
 
baloan
Guest
Posts: n/a
 
      08-25-2009
On Aug 25, 10:12*am, Pierre <(E-Mail Removed)> wrote:
> 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/ex...ing_in_tk.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto write matplotlib backend? mihail.udov@yahoo.com Python 0 11-26-2007 01:13 PM
Problem with Matplotlib and the Tk-Backend thorstenkranz Python 1 04-27-2007 04:24 AM
Simple task works when MS SQL Server is the backend but not when MySQL is the backend. Ted ASP .Net 1 02-22-2007 08:33 PM
Matplotlib w/ TK Backend. Kenneth Miller Python 1 06-08-2005 07:53 AM
MatPlotLib.MatLab troubles (how to install/run matplotlib.PyLab?) Dr. Colombes Python 3 02-23-2005 04:32 PM



Advertisments