Skip to content

Commit 7a563e6

Browse files
committed
BUG: in Patch.update_from, use private variables directly. Closes #7375.
1 parent e46e1c0 commit 7a563e6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/matplotlib/patches.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,13 @@ def update_from(self, other):
193193
Updates this :class:`Patch` from the properties of *other*.
194194
"""
195195
artist.Artist.update_from(self, other)
196-
self.set_edgecolor(other.get_edgecolor())
197-
self.set_facecolor(other.get_facecolor())
198-
self.set_fill(other.get_fill())
199-
self.set_hatch(other.get_hatch())
200-
self.set_linewidth(other.get_linewidth())
201-
self.set_linestyle(other.get_linestyle())
196+
self._edgecolor = other._edgecolor
197+
self._facecolor = other._facecolor
198+
self._fill = other._fill
199+
self._hatch = other._hatch
200+
self._linewidth = other._linewidth
201+
self._linestyle = other._linestyle
202202
self.set_transform(other.get_data_transform())
203-
self.set_alpha(other.get_alpha())
204203

205204
def get_extents(self):
206205
"""

0 commit comments

Comments
 (0)