File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -2881,23 +2881,18 @@ def mouse_move(self, event):
2881
2881
except (ValueError , OverflowError ):
2882
2882
pass
2883
2883
else :
2884
+ s = s .rstrip ()
2884
2885
artists = [a for a in event .inaxes ._mouseover_set
2885
2886
if a .contains (event )[0 ] and a .get_visible ()]
2886
-
2887
2887
if artists :
2888
2888
a = cbook ._topmost_artist (artists )
2889
2889
if a is not event .inaxes .patch :
2890
2890
data = a .get_cursor_data (event )
2891
2891
if data is not None :
2892
- data_str = a .format_cursor_data (data )
2893
- if data_str is not None :
2894
- s = s + ' ' + data_str
2895
-
2896
- s = s .rstrip ()
2897
- if len (self .mode ):
2898
- self .set_message ('%s, %s' % (self .mode , s ))
2899
- else :
2900
- self .set_message (s )
2892
+ data_str = a .format_cursor_data (data ).rstrip ()
2893
+ if data_str :
2894
+ s = s + '\n ' + data_str
2895
+ self .set_message (s )
2901
2896
else :
2902
2897
self .set_message (self .mode )
2903
2898
You can’t perform that action at this time.
0 commit comments