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

Method get_unitless_position

lib/matplotlib/text.py:1008–1014  ·  view source on GitHub ↗

Return the (x, y) unitless position of the text.

(self)

Source from the content-addressed store, hash-verified

1006 return self._horizontalalignment
1007
1008 def get_unitless_position(self):
1009 """Return the (x, y) unitless position of the text."""
1010 # This will get the position with all unit information stripped away.
1011 # This is here for convenience since it is done in several locations.
1012 x = float(self.convert_xunits(self._x))
1013 y = float(self.convert_yunits(self._y))
1014 return x, y
1015
1016 def get_position(self):
1017 """Return the (x, y) position of the text."""

Callers 6

_get_xy_displayMethod · 0.95
get_rotationMethod · 0.95
get_window_extentMethod · 0.95
get_tightbboxMethod · 0.95
draw_textMethod · 0.80
_draw_text_as_textMethod · 0.80

Calls 2

convert_xunitsMethod · 0.80
convert_yunitsMethod · 0.80

Tested by

no test coverage detected