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

Skip to content

Commit 43bff96

Browse files
committed
Add passed offset in draw method of Patch
1 parent f06c2c3 commit 43bff96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/patches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,9 @@ def draw(self, renderer):
586586
# docstring inherited
587587
if not self.get_visible():
588588
return
589-
# Patch has traditionally ignored the dashoffset.
589+
590590
with cbook._setattr_cm(
591-
self, _dash_pattern=(0, self._dash_pattern[1])), \
591+
self, _dash_pattern=(self._dash_pattern)), \
592592
self._bind_draw_path_function(renderer) as draw_path:
593593
path = self.get_path()
594594
transform = self.get_transform()

0 commit comments

Comments
 (0)