matplotlib / backend

Discussion in 'Python' started by Pierre, Aug 25, 2009.

  1. Pierre

    Pierre Guest

    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
     
    Pierre, Aug 25, 2009
    #1
    1. Advertising

  2. Pierre

    baloan Guest

    On Aug 25, 10:12 am, Pierre <> 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/examples/user_interfaces/embedding_in_tk.html
     
    baloan, Aug 25, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dr. Colombes
    Replies:
    3
    Views:
    681
    John Hunter
    Feb 23, 2005
  2. Kenneth Miller

    Matplotlib w/ TK Backend.

    Kenneth Miller, Jun 8, 2005, in forum: Python
    Replies:
    1
    Views:
    374
    Robert Kern
    Jun 8, 2005
  3. Ted
    Replies:
    1
    Views:
    438
  4. thorstenkranz

    Problem with Matplotlib and the Tk-Backend

    thorstenkranz, Apr 26, 2007, in forum: Python
    Replies:
    1
    Views:
    423
    James Stroud
    Apr 27, 2007
  5. Replies:
    0
    Views:
    333
Loading...

Share This Page