@@ -621,28 +621,6 @@ def test_invalid_arguments():
621621 t .transform ([[1 , 2 , 3 ]])
622622
623623
624- def test_transformed_path ():
625- points = [(0 , 0 ), (1 , 0 ), (1 , 1 ), (0 , 1 )]
626- path = Path (points , closed = True )
627-
628- trans = mtransforms .Affine2D ()
629- trans_path = mtransforms .TransformedPath (path , trans )
630- assert_allclose (trans_path .get_fully_transformed_path ().vertices , points )
631-
632- # Changing the transform should change the result.
633- r2 = 1 / np .sqrt (2 )
634- trans .rotate (np .pi / 4 )
635- assert_allclose (trans_path .get_fully_transformed_path ().vertices ,
636- [(0 , 0 ), (r2 , r2 ), (0 , 2 * r2 ), (- r2 , r2 )],
637- atol = 1e-15 )
638-
639- # Changing the path does not change the result (it's cached).
640- path .points = [(0 , 0 )] * 4
641- assert_allclose (trans_path .get_fully_transformed_path ().vertices ,
642- [(0 , 0 ), (r2 , r2 ), (0 , 2 * r2 ), (- r2 , r2 )],
643- atol = 1e-15 )
644-
645-
646624def test_transformed_patch_path ():
647625 trans = mtransforms .Affine2D ()
648626 patch = mpatches .Wedge ((0 , 0 ), 1 , 45 , 135 , transform = trans )
0 commit comments