Skip to content

release 2.0.1 has qt4-incompatible code in backend_qt5.py #8570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
miketrumpis opened this issue May 4, 2017 · 1 comment
Closed

release 2.0.1 has qt4-incompatible code in backend_qt5.py #8570

miketrumpis opened this issue May 4, 2017 · 1 comment

Comments

@miketrumpis
Copy link

Bug report

In tag 2.0.1 the NavigationToolbar2QT includes an unchecked call to a Qt5 feature:

pm.setDevicePixelRatio(self.canvas._dpi_ratio)

https://github.com/matplotlib/matplotlib/blob/v2.0.1/lib/matplotlib/backends/backend_qt5.py#L587-L592

This is strange, b/c it's not there in tag 2.0.0 and it's not there in master!

I can reproduce this with a simple plt.plot(np.random.randn(10)).

AttributeError: 'PySide.QtGui.QPixmap' object has no attribute 'setDevicePixelRatio'

Issue goes away when I revert to 2.0.0

@jenshnielsen
Copy link
Member

This is a duplicate of #8565 #8563 and #8562 and will be fixed in 2.0.2 which should be released in the next few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants