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 @@ -2835,23 +2835,18 @@ def mouse_move(self, event):
2835
2835
except (ValueError , OverflowError ):
2836
2836
pass
2837
2837
else :
2838
+ s = s .rstrip ()
2838
2839
artists = [a for a in event .inaxes ._mouseover_set
2839
2840
if a .contains (event )[0 ] and a .get_visible ()]
2840
-
2841
2841
if artists :
2842
2842
a = cbook ._topmost_artist (artists )
2843
2843
if a is not event .inaxes .patch :
2844
2844
data = a .get_cursor_data (event )
2845
2845
if data is not None :
2846
- data_str = a .format_cursor_data (data )
2847
- if data_str is not None :
2848
- s = s + ' ' + data_str
2849
-
2850
- s = s .rstrip ()
2851
- if len (self .mode ):
2852
- self .set_message ('%s, %s' % (self .mode , s ))
2853
- else :
2854
- self .set_message (s )
2846
+ data_str = a .format_cursor_data (data ).rstrip ()
2847
+ if data_str :
2848
+ s = s + '\n ' + data_str
2849
+ self .set_message (s )
2855
2850
else :
2856
2851
self .set_message (self .mode )
2857
2852
You can’t perform that action at this time.
0 commit comments