Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80d1f0d

Browse files
committed
Change the Qt label vertical alignment to centered.
1 parent 0fc4583 commit 80d1f0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,7 @@ def _init_toolbar(self):
712712
# will resize this label instead of the buttons.
713713
if self.coordinates:
714714
self.locLabel = QtWidgets.QLabel("", self)
715-
self.locLabel.setAlignment(
716-
QtCore.Qt.AlignRight | QtCore.Qt.AlignTop)
715+
self.locLabel.setAlignment(QtCore.Qt.AlignRight)
717716
self.locLabel.setSizePolicy(
718717
QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
719718
QtWidgets.QSizePolicy.Ignored))

0 commit comments

Comments
 (0)