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

Skip to content

Commit 34a85ed

Browse files
committed
Fix #4074: Bug introduced in 91725d8
1 parent ee4f072 commit 34a85ed

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/matplotlib/transforms.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,8 @@ def transform_path_non_affine(self, path):
14221422
"""
14231423
x = self.transform_non_affine(path.vertices)
14241424
return Path._fast_from_codes_and_verts(x, path.codes,
1425-
{'interpolation_steps': path._interpolation_steps})
1425+
{'interpolation_steps': path._interpolation_steps,
1426+
'should_simplify': path.should_simplify})
14261427

14271428
def transform_angles(self, angles, pts, radians=False, pushoff=1e-5):
14281429
"""
@@ -2628,8 +2629,11 @@ def _revalidate(self):
26282629
self._transformed_path = \
26292630
self._transform.transform_path_non_affine(self._path)
26302631
self._transformed_points = \
2631-
Path._fast_from_codes_and_verts(self._transform.transform_non_affine(self._path.vertices),
2632-
None, {'interpolation_steps': self._path._interpolation_steps})
2632+
Path._fast_from_codes_and_verts(
2633+
self._transform.transform_non_affine(self._path.vertices),
2634+
None,
2635+
{'interpolation_steps': self._path._interpolation_steps,
2636+
'should_simplify': self._path.should_simplify})
26332637
self._invalid = 0
26342638

26352639
def get_transformed_points_and_affine(self):

0 commit comments

Comments
 (0)