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

Method _set_labelrotation

lib/matplotlib/axis.py:209–219  ·  view source on GitHub ↗
(self, labelrotation)

Source from the content-addressed store, hash-verified

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):

Callers 2

__init__Method · 0.95
_apply_paramsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected