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

Skip to content

Commit 0e90810

Browse files
committed
fixed a resize bug in qt backend, related to printing the cursors
coordinates in the navigation toolbar. svn path=/trunk/matplotlib/; revision=2624
1 parent 3c61684 commit 0e90810

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/backends/backend_qt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def _init_toolbar( self ):
279279
# will resize this label instead of the buttons.
280280
self.locLabel = qt.QLabel( "", self )
281281
self.locLabel.setAlignment( qt.Qt.AlignRight | qt.Qt.AlignVCenter )
282+
self.locLabel.setSizePolicy(qt.QSizePolicy(qt.QSizePolicy.Ignored,
283+
qt.QSizePolicy.Ignored))
282284
self.layout.addWidget( self.locLabel, 1 )
283285

284286
def pan( self, *args ):

0 commit comments

Comments
 (0)