On Wed, Jun 20, 2012 at 6:12 AM, mogliii <mogl...@gmx.net> wrote:
> Hi,
>
> on the computer where it does not work the backend is 'agg'. In a
> virtual machine, where it works, the backend shows 'TkAgg'
>
> Now on the machine it does not work I run the following:
>
> >>> import matplotlib
> >>> matplotlib.use('TkAgg')
> >>> import matplotlib.pyplot as plt
>
> ImportError: cannot import name _tkagg
>
>
> Works with 'QT4Agg' though. Where is the default config for matplotlib
> located so I can change to 'QT4Agg'?
>
> Many thanks so far. Plot window opened. But I don't want to set the
> backend everytime i run matplotlib.
>
>
Ah, this would mean that the Tk development files were not available (or in
a location to be found) when you built/installed matplotlib. When
libraries like these aren't found, matplotlib falls back to the Agg
backend, which can not display a window. To have QT4Agg as your default
backend, just edit your matplotlibrc file. You should see an entry for
"backend".
Cheers!
Ben Root
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users