[Path / PolyCollection / Polygon] fix order of rotation/offset

This commit is contained in:
Jan Petykiewicz 2025-10-26 21:36:29 -07:00
commit 34a43a707c
3 changed files with 6 additions and 7 deletions

View file

@ -212,10 +212,10 @@ class Path(Shape):
self.width = width
self.cap = cap
self.cap_extensions = cap_extensions
if numpy.any(offset):
self.translate(offset)
if rotation:
self.rotate(rotation)
if numpy.any(offset):
self.translate(offset)
def __deepcopy__(self, memo: dict | None = None) -> 'Path':
memo = {} if memo is None else memo