8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4748f6f + 64be0e4 commit 8244201Copy full SHA for 8244201
lib/matplotlib/backends/backend_qt5.py
@@ -119,6 +119,11 @@ def _create_qApp():
119
QtCore.Qt.AA_EnableHighDpiScaling)
120
except AttributeError: # Attribute only exists for Qt>=5.6.
121
pass
122
+ try:
123
+ QtWidgets.QApplication.setHighDpiScaleFactorRoundingPolicy(
124
+ QtCore.Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)
125
+ except AttributeError: # Added in Qt>=5.14.
126
+ pass
127
qApp = QtWidgets.QApplication(["matplotlib"])
128
qApp.lastWindowClosed.connect(qApp.quit)
129
cbook._setup_new_guiapp()
0 commit comments