Thanks to visit codestin.com Credit goes to github.com
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 5a3c796 + 1180f3a commit 163cf66Copy full SHA for 163cf66
lib/matplotlib/backends/backend_qt5.py
@@ -611,7 +611,15 @@ def _init_toolbar(self):
611
if is_pyqt5():
612
self.setIconSize(QtCore.QSize(24, 24))
613
self.layout().setSpacing(12)
614
- self.setMinimumHeight(48)
+
615
+ if is_pyqt5():
616
+ # For some reason, self.setMinimumHeight doesn't seem to carry over to
617
+ # the actual sizeHint, so override it instead in order to make the
618
+ # aesthetic adjustments noted above.
619
+ def sizeHint(self):
620
+ size = super().sizeHint()
621
+ size.setHeight(max(48, size.height()))
622
+ return size
623
624
def edit_parameters(self):
625
allaxes = self.canvas.figure.get_axes()
0 commit comments