Set the label position (top or bottom) Parameters ---------- position : {'top', 'bottom'}
(self, position)
| 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 | """ |
nothing calls this directly
no test coverage detected