Skip to content

Commit c0466fa

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #32032: MNT: remove redundant imports
1 parent 70d0955 commit c0466fa

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/matplotlib/tests/test_image.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,6 @@ def test_imshow_multi_draw(n_channels, is_int, alpha_arr, opaque):
343343

344344

345345
def test_cursor_data():
346-
from matplotlib.backend_bases import MouseEvent
347-
348346
fig, ax = plt.subplots()
349347
im = ax.imshow(np.arange(100).reshape(10, 10), origin='upper')
350348

@@ -425,8 +423,6 @@ def test_cursor_data():
425423
]
426424
)
427425
def test_cursor_data_nonuniform(xy, data):
428-
from matplotlib.backend_bases import MouseEvent
429-
430426
# Non-linear set of x-values
431427
x = np.array([0, 1, 4, 9, 16])
432428
y = np.array([0, 1, 2, 3, 4])

0 commit comments

Comments
 (0)