(self, labelrotation)
| 207 | self.update_position(loc) |
| 208 | |
| 209 | def _set_labelrotation(self, labelrotation): |
| 210 | if isinstance(labelrotation, str): |
| 211 | mode = labelrotation |
| 212 | angle = 0 |
| 213 | elif isinstance(labelrotation, (tuple, list)): |
| 214 | mode, angle = labelrotation |
| 215 | else: |
| 216 | mode = 'default' |
| 217 | angle = labelrotation |
| 218 | _api.check_in_list(['auto', 'default'], labelrotation=mode) |
| 219 | self._labelrotation = (mode, angle) |
| 220 | |
| 221 | @property |
| 222 | def _pad(self): |
no outgoing calls
no test coverage detected