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

Method _get_path_in_displaycoord

lib/matplotlib/patches.py:4616–4639  ·  view source on GitHub ↗

Return the mutated path of the arrow in display coordinates.

(self)

Source from the content-addressed store, hash-verified

4614 return self.get_transform().inverted().transform_path(_path)
4615
4616 def _get_path_in_displaycoord(self):
4617 """Return the mutated path of the arrow in display coordinates."""
4618 dpi_cor = self._dpi_cor
4619
4620 if self._posA_posB is not None:
4621 posA = self._convert_xy_units(self._posA_posB[0])
4622 posB = self._convert_xy_units(self._posA_posB[1])
4623 (posA, posB) = self.get_transform().transform((posA, posB))
4624 _path = self.get_connectionstyle()(posA, posB,
4625 patchA=self.patchA,
4626 patchB=self.patchB,
4627 shrinkA=self.shrinkA * dpi_cor,
4628 shrinkB=self.shrinkB * dpi_cor
4629 )
4630 else:
4631 _path = self.get_transform().transform_path(self._path_original)
4632
4633 _path, fillable = self.get_arrowstyle()(
4634 _path,
4635 self.get_mutation_scale() * dpi_cor,
4636 self.get_linewidth() * dpi_cor,
4637 self.get_mutation_aspect())
4638
4639 return _path, fillable
4640
4641 def draw(self, renderer):
4642 if not self.get_visible():

Callers

nothing calls this directly

Calls 9

get_connectionstyleMethod · 0.95
get_arrowstyleMethod · 0.95
get_mutation_scaleMethod · 0.95
get_mutation_aspectMethod · 0.95
_convert_xy_unitsMethod · 0.80
transformMethod · 0.45
get_transformMethod · 0.45
transform_pathMethod · 0.45
get_linewidthMethod · 0.45

Tested by

no test coverage detected