File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
example_cursor_scatter_experimental Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ def hover(self, event) -> None:
316
316
317
317
#x y label
318
318
if self .scatter_label and idx_best > len (good_line )- 1 :
319
- self .text .set_text (f"pt { self .scatter_label [good_index_scatter [idx_best ]]} x={ x } , y={ y } " )
319
+ self .text .set_text (f"{ self .scatter_label [good_index_scatter [idx_best ]]} x={ x } , y={ y } " )
320
320
else :
321
321
self .text .set_text (f"x={ x } , y={ y } " )
322
322
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def on_start(self, *args):
47
47
mygraph = GraphGenerator ()
48
48
49
49
self .screen .figure_wgt .figure = mygraph .fig
50
- self .screen .figure_wgt .scatter_label = mygraph .ptid
50
+ self .screen .figure_wgt .scatter_label = [ 'pt' + str ( i ) for i in mygraph .ptid ]
51
51
self .screen .figure_wgt .axes = mygraph .ax1
52
52
self .screen .figure_wgt .xmin = mygraph .xmin
53
53
self .screen .figure_wgt .xmax = mygraph .xmax
You can’t perform that action at this time.
0 commit comments