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

Method set_label_position

lib/matplotlib/axis.py:2591–2603  ·  view source on GitHub ↗

Set the label position (top or bottom) Parameters ---------- position : {'top', 'bottom'}

(self, position)

Source from the content-addressed store, hash-verified

2589 return inaxis, {}
2590
2591 def set_label_position(self, position):
2592 """
2593 Set the label position (top or bottom)
2594
2595 Parameters
2596 ----------
2597 position : {'top', 'bottom'}
2598 """
2599 self.label.set_verticalalignment(_api.getitem_checked({
2600 'top': 'baseline', 'bottom': 'top',
2601 }, position=position))
2602 self.label_position = position
2603 self.stale = True
2604
2605 def _update_label_position(self, renderer):
2606 """

Callers

nothing calls this directly

Calls 1

set_verticalalignmentMethod · 0.80

Tested by

no test coverage detected