On Wed, Jun 20, 2012 at 6:12 AM, mogliii <mogliii@...> wrote:
> 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