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

Method format_ticks

lib/matplotlib/category.py:154–157  ·  view source on GitHub ↗
(self, values)

Source from the content-addressed store, hash-verified

152 return self.format_ticks([x])[0]
153
154 def format_ticks(self, values):
155 # docstring inherited
156 r_mapping = {v: self._text(k) for k, v in self._units.items()}
157 return [r_mapping.get(round(val), '') for val in values]
158
159 @staticmethod
160 def _text(value):

Callers 1

__call__Method · 0.95

Calls 2

_textMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected