@@ -170,7 +170,7 @@ def test_cursor_data():
170
170
xdisp , ydisp = ax .transData .transform_point ([x , y ])
171
171
172
172
event = MouseEvent ('motion_notify_event' , fig .canvas , xdisp , ydisp )
173
- assert im .get_pixel_data (event ) == 44
173
+ assert im .get_cursor_data (event ) == 44
174
174
175
175
ax .clear ()
176
176
im = ax .imshow (np .arange (100 ).reshape (10 , 10 ), origin = 'lower' )
@@ -179,7 +179,7 @@ def test_cursor_data():
179
179
xdisp , ydisp = ax .transData .transform_point ([x , y ])
180
180
181
181
event = MouseEvent ('motion_notify_event' , fig .canvas , xdisp , ydisp )
182
- assert im .get_pixel_data (event ) == 44
182
+ assert im .get_cursor_data (event ) == 44
183
183
184
184
fig , ax = plt .subplots ()
185
185
im = ax .imshow (np .arange (100 ).reshape (10 , 10 ), extent = [0 , 0.5 , 0 , 0.5 ])
@@ -188,7 +188,7 @@ def test_cursor_data():
188
188
xdisp , ydisp = ax .transData .transform_point ([x , y ])
189
189
190
190
event = MouseEvent ('motion_notify_event' , fig .canvas , xdisp , ydisp )
191
- assert im .get_pixel_data (event ) == 55
191
+ assert im .get_cursor_data (event ) == 55
192
192
193
193
194
194
@image_comparison (baseline_images = ['image_clip' ])
0 commit comments