Set the label position (left or right) Parameters ---------- position : {'left', 'right'}
(self, position)
| 2257 | return dy |
| 2258 | |
| 2259 | def set_label_position(self, position): |
| 2260 | """ |
| 2261 | Set the label position (left or right) |
| 2262 | |
| 2263 | Parameters |
| 2264 | ---------- |
| 2265 | position : {'left', 'right'} |
| 2266 | """ |
| 2267 | self.label.set_rotation_mode('anchor') |
| 2268 | self.label.set_horizontalalignment('center') |
| 2269 | if position == 'left': |
| 2270 | self.label.set_verticalalignment('bottom') |
| 2271 | elif position == 'right': |
| 2272 | self.label.set_verticalalignment('top') |
| 2273 | else: |
| 2274 | raise ValueError("Position accepts only 'left' or 'right'") |
| 2275 | self.label_position = position |
| 2276 | self.stale = True |
| 2277 | |
| 2278 | def _get_tick_boxes_siblings(self, renderer): |
| 2279 | """ |
nothing calls this directly
no test coverage detected