MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / update_from

Method update_from

lib/matplotlib/patches.py:286–305  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

284 radius)
285
286 def update_from(self, other):
287 # docstring inherited.
288 super().update_from(other)
289 # For some properties we don't need or don't want to go through the
290 # getters/setters, so we just copy them directly.
291 self._edgecolor = other._edgecolor
292 self._facecolor = other._facecolor
293 self._original_edgecolor = other._original_edgecolor
294 self._original_facecolor = other._original_facecolor
295 self._fill = other._fill
296 self._hatch = other._hatch
297 self._hatch_color = other._hatch_color
298 self._original_hatchcolor = other._original_hatchcolor
299 self._unscaled_dash_pattern = other._unscaled_dash_pattern
300 self._gapcolor = other._gapcolor
301 self.set_linewidth(other._linewidth) # also sets scaled dashes
302 self.set_transform(other.get_data_transform())
303 # If the transform of other needs further initialization, then it will
304 # be the case for this artist too.
305 self._transformSet = other.is_transform_set()
306
307 def get_extents(self):
308 """

Callers 1

__init__Method · 0.45

Calls 4

set_linewidthMethod · 0.95
get_data_transformMethod · 0.80
is_transform_setMethod · 0.80
set_transformMethod · 0.45

Tested by

no test coverage detected