[Matplotlib-users] Cannot connect NavigationToolbar2QT
Helmut Jarausch
jarausch at skynet.be
Wed Aug 3 09:06:00 EDT 2016
Hi,
I haven't used Matplotlib for a while but now I cannot use it anymore.
Even the simplest vector plot gives
import matplotlib.pyplot as plt
>>> x=[0.0,0.1,0.2,0.3,0.4,0.5]
>>> y=[x[i]**2 for i in range(0,6)]
>>> plt.plot(x,y)
QObject::connect: Cannot connect NavigationToolbar2QT::message(QString)
to (null)::_show_message()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
3147, in plot
ax = gca()
File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
928, in gca
return gcf().gca(**kwargs)
File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
578, in gcf
return figure()
File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
527, in figure
**kwargs)
File
"/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py",
line 43, in new_figure_manager
return new_figure_manager_given_figure(num, thisFig)
File
"/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py",
line 51, in new_figure_manager_given_figure
return FigureManagerQT(canvas, num)
File
"/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5.py",
line 465, in __init__
self.toolbar.message.connect(self._show_message)
TypeError: connect() failed between NavigationToolbar2QT.message[str]
and _show_message()
Has anybody got an idea what's going wrong here?
I have compiled Matploblib from source on my Gentoo system using Python
3.5.2 with the gtk3 and qt5 backend.
Many thanks for a hint,
Helmut
More information about the Matplotlib-users
mailing list