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

Method _update_path

lib/matplotlib/patches.py:2315–2323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2313 self._path = path_original
2314
2315 def _update_path(self):
2316 # Compute new values and update and set new _path if any value changed
2317 stretched = self._theta_stretch()
2318 if any(a != b for a, b in zip(
2319 stretched, (self._theta1, self._theta2, self._stretched_width,
2320 self._stretched_height))):
2321 (self._theta1, self._theta2, self._stretched_width,
2322 self._stretched_height) = stretched
2323 self._path = Path.arc(self._theta1, self._theta2)
2324
2325 def _theta_stretch(self):
2326 # If the width and height of ellipse are not equal, take into account

Callers 1

drawMethod · 0.95

Calls 2

_theta_stretchMethod · 0.95
arcMethod · 0.80

Tested by

no test coverage detected