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

Method set_label_position

lib/matplotlib/axis.py:2817–2830  ·  view source on GitHub ↗

Set the label position (left or right) Parameters ---------- position : {'left', 'right'}

(self, position)

Source from the content-addressed store, hash-verified

2815 return inaxis, {}
2816
2817 def set_label_position(self, position):
2818 """
2819 Set the label position (left or right)
2820
2821 Parameters
2822 ----------
2823 position : {'left', 'right'}
2824 """
2825 self.label.set_rotation_mode('anchor')
2826 self.label.set_verticalalignment(_api.getitem_checked({
2827 'left': 'bottom', 'right': 'top',
2828 }, position=position))
2829 self.label_position = position
2830 self.stale = True
2831
2832 def _update_label_position(self, renderer):
2833 """

Callers

nothing calls this directly

Calls 2

set_rotation_modeMethod · 0.80
set_verticalalignmentMethod · 0.80

Tested by

no test coverage detected