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

Method set_offset_position

lib/matplotlib/axis.py:2874–2885  ·  view source on GitHub ↗

Parameters ---------- position : {'left', 'right'}

(self, position)

Source from the content-addressed store, hash-verified

2872 )
2873
2874 def set_offset_position(self, position):
2875 """
2876 Parameters
2877 ----------
2878 position : {'left', 'right'}
2879 """
2880 x, y = self.offsetText.get_position()
2881 x = _api.getitem_checked({'left': 0, 'right': 1}, position=position)
2882
2883 self.offsetText.set_ha(position)
2884 self.offsetText.set_position((x, y))
2885 self.stale = True
2886
2887 def set_ticks_position(self, position):
2888 """

Callers 2

set_ticks_positionMethod · 0.95
twinxMethod · 0.80

Calls 2

get_positionMethod · 0.45
set_positionMethod · 0.45

Tested by

no test coverage detected