[PyQt] PyQt with Matplotlib: stacked bar problem

Hans-Peter Jansen hpj at urpla.net
Thu Feb 10 11:22:11 GMT 2011


On Thursday 10 February 2011, 08:15:46 Roger Oberholtzer wrote:
>
> I'm new to all this as well. So I am currently lurking trying to see
> what folk are doing. I run various bits of code to see that I can
> learn. So of course I tried to run yours (in a file called
> matplotlib.py). I get:
>
> Traceback (most recent call last):
>   File "matplotlib.py", line 6, in <module>
>     from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
> as FigureCanvas File "/home/roger/PyQt/matplotlib.py", line 6, in
> <module> from matplotlib.backends.backend_qt4agg import
> FigureCanvasQTAgg as FigureCanvas ImportError: No module named
> backends.backend_qt4agg

You seem to miss the matplotlib qt4 backend. 

As I know, you're on openSUSE, you might want to try my OBS 
python-matplotlib package @ home:frispete:PyQt. 

Let me know about the outcome, if you try.

Pete


More information about the PyQt mailing list