MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / _update_offset_text_position

Method _update_offset_text_position

site-packages/matplotlib/axis.py:1967–1980  ·  view source on GitHub ↗

Update the offset_text position based on the sequence of bounding boxes of all the ticklabels

(self, bboxes, bboxes2)

Source from the content-addressed store, hash-verified

1965 )
1966
1967 def _update_offset_text_position(self, bboxes, bboxes2):
1968 """
1969 Update the offset_text position based on the sequence of bounding
1970 boxes of all the ticklabels
1971 """
1972 x, y = self.offsetText.get_position()
1973 if not len(bboxes):
1974 bottom = self.axes.bbox.ymin
1975 else:
1976 bbox = mtransforms.Bbox.union(bboxes)
1977 bottom = bbox.y0
1978 self.offsetText.set_position(
1979 (x, bottom - self.OFFSETTEXTPAD * self.figure.dpi / 72)
1980 )
1981
1982 def get_text_heights(self, renderer):
1983 """

Callers

nothing calls this directly

Calls 3

get_positionMethod · 0.45
unionMethod · 0.45
set_positionMethod · 0.45

Tested by

no test coverage detected