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

Method _get_xy

lib/matplotlib/text.py:1692–1699  ·  view source on GitHub ↗
(self, renderer, xy, coords)

Source from the content-addressed store, hash-verified

1690 self._draggable = None
1691
1692 def _get_xy(self, renderer, xy, coords):
1693 x, y = xy
1694 xcoord, ycoord = coords if isinstance(coords, tuple) else (coords, coords)
1695 if xcoord == 'data':
1696 x = float(self.convert_xunits(x))
1697 if ycoord == 'data':
1698 y = float(self.convert_yunits(y))
1699 return self._get_xy_transform(renderer, coords).transform((x, y))
1700
1701 def _get_xy_transform(self, renderer, coords):
1702

Callers 2

_get_position_xyMethod · 0.95
update_positionsMethod · 0.45

Calls 4

_get_xy_transformMethod · 0.95
convert_xunitsMethod · 0.80
convert_yunitsMethod · 0.80
transformMethod · 0.45

Tested by

no test coverage detected