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

Method get_path

lib/matplotlib/patches.py:4177–4185  ·  view source on GitHub ↗

Return the mutated path of the rectangle.

(self)

Source from the content-addressed store, hash-verified

4175 else 1) # backcompat.
4176
4177 def get_path(self):
4178 """Return the mutated path of the rectangle."""
4179 boxstyle = self.get_boxstyle()
4180 m_aspect = self.get_mutation_aspect()
4181 # Call boxstyle with y, height squeezed by aspect_ratio.
4182 path = boxstyle(self._x, self._y / m_aspect,
4183 self._width, self._height / m_aspect,
4184 self.get_mutation_scale())
4185 return Path(path.vertices * [1, m_aspect], path.codes) # Unsqueeze y.
4186
4187 # Following methods are borrowed from the Rectangle class.
4188

Callers

nothing calls this directly

Calls 4

get_boxstyleMethod · 0.95
get_mutation_aspectMethod · 0.95
get_mutation_scaleMethod · 0.95
PathClass · 0.85

Tested by

no test coverage detected