1919
2020import matplotlib .transforms as mtrans
2121import matplotlib .pyplot as plt
22- import matplotlib .path as mpath
2322import 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