1010import matplotlib as mpl
1111from . import artist , cbook , colors , docstring , lines as mlines , transforms
1212from .bezier import (
13- NonIntersectingPathException , concatenate_paths , get_cos_sin ,
14- get_intersection , get_parallels , inside_circle , make_path_regular ,
15- make_wedged_bezier2 , split_bezier_intersecting_with_closedpath ,
16- split_path_inout )
13+ NonIntersectingPathException , get_cos_sin , get_intersection ,
14+ get_parallels , inside_circle , make_wedged_bezier2 ,
15+ split_bezier_intersecting_with_closedpath , split_path_inout )
1716from .path import Path
1817
1918
@@ -2873,8 +2872,6 @@ def __call__(self, path, mutation_size, linewidth,
28732872 and takes care of the aspect ratio.
28742873 """
28752874
2876- path = make_path_regular (path )
2877-
28782875 if aspect_ratio is not None :
28792876 # Squeeze the given height by the aspect_ratio
28802877 vertices = path .vertices / [1 , aspect_ratio ]
@@ -2886,10 +2883,9 @@ def __call__(self, path, mutation_size, linewidth,
28862883 if np .iterable (fillable ):
28872884 path_list = []
28882885 for p in zip (path_mutated ):
2889- v , c = p .vertices , p .codes
28902886 # Restore the height
2891- v [:, 1 ] = v [:, 1 ] * aspect_ratio
2892- path_list . append ( Path (v , c ))
2887+ path_list . append (
2888+ Path (p . vertices * [ 1 , aspect_ratio ], p . codes ))
28932889 return path_list , fillable
28942890 else :
28952891 return path_mutated , fillable
@@ -4125,7 +4121,7 @@ def get_path(self):
41254121 """
41264122 _path , fillable = self .get_path_in_displaycoord ()
41274123 if np .iterable (fillable ):
4128- _path = concatenate_paths ( _path )
4124+ _path = Path . make_compound_path ( * _path )
41294125 return self .get_transform ().inverted ().transform_path (_path )
41304126
41314127 def get_path_in_displaycoord (self ):
0 commit comments