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

Skip to content

Commit 1552264

Browse files
committed
Fixes matplotlib#930. The YAArrow constructor does not correctly set the figure.
1 parent 79deb35 commit 1552264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,13 +1031,13 @@ def __init__(self, figure, xytip, xybase, width=4, frac=0.1, headwidth=12, **kwa
10311031
%(Patch)s
10321032
10331033
"""
1034-
self.figure = figure
10351034
self.xytip = xytip
10361035
self.xybase = xybase
10371036
self.width = width
10381037
self.frac = frac
10391038
self.headwidth = headwidth
10401039
Patch.__init__(self, **kwargs)
1040+
self.figure = figure
10411041

10421042
def get_path(self):
10431043
# Since this is dpi dependent, we need to recompute the path

0 commit comments

Comments
 (0)