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

Method _convert_units

lib/matplotlib/patches.py:898–904  ·  view source on GitHub ↗

Convert bounds of the rectangle.

(self)

Source from the content-addressed store, hash-verified

896 return Path.unit_rectangle()
897
898 def _convert_units(self):
899 """Convert bounds of the rectangle."""
900 x0 = self.convert_xunits(self._x0)
901 y0 = self.convert_yunits(self._y0)
902 x1 = self.convert_xunits(self._x0 + self._width)
903 y1 = self.convert_yunits(self._y0 + self._height)
904 return x0, y0, x1, y1
905
906 def get_patch_transform(self):
907 # Note: This cannot be called until after this has been added to

Callers 2

__init__Method · 0.95
get_bboxMethod · 0.95

Calls 2

convert_xunitsMethod · 0.80
convert_yunitsMethod · 0.80

Tested by

no test coverage detected