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

Method _num_to_string

lib/matplotlib/ticker.py:1073–1074  ·  view source on GitHub ↗
(self, x, vmin, vmax)

Source from the content-addressed store, hash-verified

1071 self._sublabels = set(np.arange(1, b + 1))
1072
1073 def _num_to_string(self, x, vmin, vmax):
1074 return self._pprint_val(x, vmax - vmin) if 1 <= x <= 10000 else f"{x:1.0e}"
1075
1076 def __call__(self, x, pos=None):
1077 # docstring inherited

Callers 1

__call__Method · 0.95

Calls 1

_pprint_valMethod · 0.95

Tested by

no test coverage detected