Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1abc0c

Browse files
committed
Revert "Merge pull request #3681 from jbmohler/use_fast_from_codes_and_verts"
This reverts commit c299457, reversing changes made to 38d69b0.
1 parent ab7366f commit b1abc0c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/matplotlib/transforms.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,9 +1411,8 @@ def transform_path_non_affine(self, path):
14111411
``transform_path(path)`` is equivalent to
14121412
``transform_path_affine(transform_path_non_affine(values))``.
14131413
"""
1414-
x = self.transform_non_affine(path.vertices)
1415-
return Path._fast_from_codes_and_verts(x, path.codes,
1416-
{'interpolation_steps': path._interpolation_steps})
1414+
return Path(self.transform_non_affine(path.vertices), path.codes,
1415+
path._interpolation_steps)
14171416

14181417
def transform_angles(self, angles, pts, radians=False, pushoff=1e-5):
14191418
"""
@@ -2619,8 +2618,8 @@ def _revalidate(self):
26192618
self._transformed_path = \
26202619
self._transform.transform_path_non_affine(self._path)
26212620
self._transformed_points = \
2622-
Path._fast_from_codes_and_verts(self._transform.transform_non_affine(self._path.vertices),
2623-
None, {'interpolation_steps': self._path._interpolation_steps})
2621+
Path(self._transform.transform_non_affine(self._path.vertices),
2622+
None, self._path._interpolation_steps)
26242623
self._invalid = 0
26252624

26262625
def get_transformed_points_and_affine(self):

0 commit comments

Comments
 (0)