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

Method _get_path_in_displaycoord

lib/matplotlib/patches.py:4860–4876  ·  view source on GitHub ↗

Return the mutated path of the arrow in display coordinates.

(self)

Source from the content-addressed store, hash-verified

4858 return self._annotation_clip
4859
4860 def _get_path_in_displaycoord(self):
4861 """Return the mutated path of the arrow in display coordinates."""
4862 dpi_cor = self._dpi_cor
4863 posA = self._get_xy(self.xy1, self.coords1, self.axesA)
4864 posB = self._get_xy(self.xy2, self.coords2, self.axesB)
4865 path = self.get_connectionstyle()(
4866 posA, posB,
4867 patchA=self.patchA, patchB=self.patchB,
4868 shrinkA=self.shrinkA * dpi_cor, shrinkB=self.shrinkB * dpi_cor,
4869 )
4870 path, fillable = self.get_arrowstyle()(
4871 path,
4872 self.get_mutation_scale() * dpi_cor,
4873 self.get_linewidth() * dpi_cor,
4874 self.get_mutation_aspect()
4875 )
4876 return path, fillable
4877
4878 def _check_xy(self, renderer):
4879 """Check whether the annotation needs to be drawn."""

Callers

nothing calls this directly

Calls 6

_get_xyMethod · 0.95
get_connectionstyleMethod · 0.80
get_arrowstyleMethod · 0.80
get_mutation_scaleMethod · 0.45
get_linewidthMethod · 0.45
get_mutation_aspectMethod · 0.45

Tested by

no test coverage detected