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

Method _update_offset_text_position

site-packages/matplotlib/axis.py:2339–2348  ·  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

2337 )
2338
2339 def _update_offset_text_position(self, bboxes, bboxes2):
2340 """
2341 Update the offset_text position based on the sequence of bounding
2342 boxes of all the ticklabels
2343 """
2344 x, y = self.offsetText.get_position()
2345 top = self.axes.bbox.ymax
2346 self.offsetText.set_position(
2347 (x, top + self.OFFSETTEXTPAD * self.figure.dpi / 72)
2348 )
2349
2350 def set_offset_position(self, position):
2351 """

Callers

nothing calls this directly

Calls 2

get_positionMethod · 0.45
set_positionMethod · 0.45

Tested by

no test coverage detected