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

Method update_from

lib/matplotlib/artist.py:1230–1248  ·  view source on GitHub ↗

Copy properties from *other* to *self*.

(self, other)

Source from the content-addressed store, hash-verified

1228 return self._sticky_edges
1229
1230 def update_from(self, other):
1231 """Copy properties from *other* to *self*."""
1232 self._transform = other._transform
1233 self._transformSet = other._transformSet
1234 self._visible = other._visible
1235 self._alpha = other._alpha
1236 self.clipbox = other.clipbox
1237 self._clipon = other._clipon
1238 self._clippath = other._clippath
1239 self._label = other._label
1240 self._sketch = other._sketch
1241 self._path_effects = other._path_effects
1242 if other._sticky_edges is not None:
1243 self.sticky_edges.x[:] = other._sticky_edges.x.copy()
1244 self.sticky_edges.y[:] = other._sticky_edges.y.copy()
1245 else:
1246 self._sticky_edges = None
1247 self.pchanged()
1248 self.stale = True
1249
1250 def properties(self):
1251 """Return a dictionary of all the properties of the artist."""

Callers

nothing calls this directly

Calls 2

pchangedMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected