@@ -170,7 +170,7 @@ def test_cursor_data():
170170 xdisp , ydisp = ax .transData .transform_point ([x , y ])
171171
172172 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
174174
175175 ax .clear ()
176176 im = ax .imshow (np .arange (100 ).reshape (10 , 10 ), origin = 'lower' )
@@ -179,7 +179,7 @@ def test_cursor_data():
179179 xdisp , ydisp = ax .transData .transform_point ([x , y ])
180180
181181 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
183183
184184 fig , ax = plt .subplots ()
185185 im = ax .imshow (np .arange (100 ).reshape (10 , 10 ), extent = [0 , 0.5 , 0 , 0.5 ])
@@ -188,7 +188,7 @@ def test_cursor_data():
188188 xdisp , ydisp = ax .transData .transform_point ([x , y ])
189189
190190 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
192192
193193
194194@image_comparison (baseline_images = ['image_clip' ])
0 commit comments