19
19
20
20
import matplotlib .transforms as mtrans
21
21
import matplotlib .pyplot as plt
22
- import matplotlib .path as mpath
23
22
import matplotlib .patches as mpatches
24
23
25
24
@@ -435,7 +434,7 @@ def test_pathc_extents_non_affine(self):
435
434
ax = plt .axes ()
436
435
offset = mtrans .Affine2D ().translate (10 , 10 )
437
436
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 ]]))
439
438
patch = mpatches .PathPatch (pth ,
440
439
transform = offset + na_offset + ax .transData )
441
440
ax .add_patch (patch )
@@ -445,7 +444,7 @@ def test_pathc_extents_non_affine(self):
445
444
def test_pathc_extents_affine (self ):
446
445
ax = plt .axes ()
447
446
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 ]]))
449
448
patch = mpatches .PathPatch (pth , transform = offset + ax .transData )
450
449
ax .add_patch (patch )
451
450
expected_data_lim = np .array ([[0. , 0. ], [10. , 10. ]]) + 10
0 commit comments