Skip to content

Commit 91c117e

Browse files
committed
Remove redundant path imports in transform tests.
1 parent 12990b9 commit 91c117e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/tests/test_transforms.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import matplotlib.transforms as mtrans
2121
import matplotlib.pyplot as plt
22-
import matplotlib.path as mpath
2322
import matplotlib.patches as mpatches
2423

2524

@@ -435,7 +434,7 @@ def test_pathc_extents_non_affine(self):
435434
ax = plt.axes()
436435
offset = mtrans.Affine2D().translate(10, 10)
437436
na_offset = NonAffineForTest(mtrans.Affine2D().translate(10, 10))
438-
pth = mpath.Path(np.array([[0, 0], [0, 10], [10, 10], [10, 0]]))
437+
pth = Path(np.array([[0, 0], [0, 10], [10, 10], [10, 0]]))
439438
patch = mpatches.PathPatch(pth,
440439
transform=offset + na_offset + ax.transData)
441440
ax.add_patch(patch)
@@ -445,7 +444,7 @@ def test_pathc_extents_non_affine(self):
445444
def test_pathc_extents_affine(self):
446445
ax = plt.axes()
447446
offset = mtrans.Affine2D().translate(10, 10)
448-
pth = mpath.Path(np.array([[0, 0], [0, 10], [10, 10], [10, 0]]))
447+
pth = Path(np.array([[0, 0], [0, 10], [10, 10], [10, 0]]))
449448
patch = mpatches.PathPatch(pth, transform=offset + ax.transData)
450449
ax.add_patch(patch)
451450
expected_data_lim = np.array([[0., 0.], [10., 10.]]) + 10

0 commit comments

Comments
 (0)