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.
1 parent da94b46 commit 3c61684Copy full SHA for 3c61684
1 file changed
lib/matplotlib/backends/backend_qt4.py
@@ -274,13 +274,15 @@ def _init_toolbar( self ):
274
# will resize this label instead of the buttons.
275
self.locLabel = QtGui.QLabel( "", self )
276
self.locLabel.setAlignment( QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter )
277
+ self.locLabel.setSizePolicy(QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored,
278
+ QtGui.QSizePolicy.Ignored))
279
self.layout.addWidget( self.locLabel, 1 )
280
281
def dynamic_update( self ):
282
self.canvas.draw()
283
284
def set_message( self, s ):
- self.locLabel.setText( s )
285
+ self.locLabel.setText( s.replace(', ', '\n') )
286
287
def set_cursor( self, cursor ):
288
if DEBUG: print 'Set cursor' , cursor
0 commit comments