Cannot connect NavigationToolbar2QT - matplotlib-users - Matplotlib
Cannot connect NavigationToolbar2QT Community matplotlib-users jarausch August 3, 2016, 1:06pm 1 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 tacaswell August 3, 2016, 1:38pm 2 This is the same as PyQt5 (v5.7) backend - TypeError upon calling figure() · Issue #6853 · matplotlib/matplotlib · GitHub which is fixed by Fix for PyQt5.7 support. by anntzer · Pull Request #6854 · matplotlib/matplotlib · GitHub Tom ··· On Wed, Aug 3, 2016 at 9:06 AM Helmut Jarausch <jarausch at skynet.be> wrote: 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 _______________________________________________ Matplotlib-users mailing list Matplotlib-users at python.org Matplotlib-users Info Page -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/matplotlib-users/attachments/20160803/29f85a3f/attachment.html> ;