File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -193,12 +193,15 @@ def update_from(self, other):
193
193
Updates this :class:`Patch` from the properties of *other*.
194
194
"""
195
195
artist .Artist .update_from (self , other )
196
+ # For some properties we don't need or don't want to go through the
197
+ # getters/setters, so we just copy them directly.
196
198
self ._edgecolor = other ._edgecolor
197
199
self ._facecolor = other ._facecolor
198
200
self ._fill = other ._fill
199
201
self ._hatch = other ._hatch
200
202
self ._linewidth = other ._linewidth
201
- self ._linestyle = other ._linestyle
203
+ # Use setters, getters where we need the extra work they do.
204
+ self .set_linestyle (other ._linestyle ) # also sets dash properties
202
205
self .set_transform (other .get_data_transform ())
203
206
204
207
def get_extents (self ):
You can’t perform that action at this time.
0 commit comments