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

Method __init__

lib/matplotlib/scale.py:321–328  ·  view source on GitHub ↗
(self, base, nonpositive='clip')

Source from the content-addressed store, hash-verified

319 input_dims = output_dims = 1
320
321 def __init__(self, base, nonpositive='clip'):
322 super().__init__()
323 if base <= 0 or base == 1:
324 raise ValueError('The log base cannot be <= 0 or == 1')
325 self.base = base
326 self._clip = _api.getitem_checked(
327 {"clip": True, "mask": False}, nonpositive=nonpositive)
328 self._log_funcs = {np.e: np.log, 2: np.log2, 10: np.log10}
329
330 def __str__(self):
331 return "{}(base={}, nonpositive={!r})".format(

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected