File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -238,19 +238,19 @@ def __init__(self, axes_manager):
238
238
239
239
def update_patch_position (self ):
240
240
if self .patch is not None :
241
- self .patch .set_ydata (self .axes_manager ._values [0 ])
241
+ self .patch .set_ydata (self .axes_manager ._indexes [0 ])
242
242
self .draw_patch ()
243
243
244
244
def set_patch (self ):
245
245
ax = self .ax
246
- self .patch = ax .axhline (self .axes_manager ._values [0 ],
246
+ self .patch = ax .axhline (self .axes_manager ._indexes [0 ],
247
247
color = self .color ,
248
248
picker = 5 , animated = self .blit )
249
249
250
250
def onmove (self , event ):
251
251
'on mouse motion draw the cursor if picked'
252
252
if self .picked is True and event .inaxes :
253
- self .axes_manager ._non_slicing_axes [0 ].value = event .ydata
253
+ self .axes_manager ._non_slicing_axes [0 ].index = event .ydata
254
254
255
255
class DraggableVerticalLine (DraggablePatch ):
256
256
def __init__ (self , axes_manager ):
You can’t perform that action at this time.
0 commit comments