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

Method __init__

lib/matplotlib/scale.py:495–505  ·  view source on GitHub ↗
(self, base, linthresh, linscale)

Source from the content-addressed store, hash-verified

493 input_dims = output_dims = 1
494
495 def __init__(self, base, linthresh, linscale):
496 super().__init__()
497 if base <= 1.0:
498 raise ValueError("'base' must be larger than 1")
499 if linthresh <= 0.0:
500 raise ValueError("'linthresh' must be positive")
501 if linscale <= 0.0:
502 raise ValueError("'linscale' must be positive")
503 self.base = base
504 self.linthresh = linthresh
505 self.linscale = linscale
506
507 def transform_non_affine(self, values):
508 linscale_adj = self.linscale / (1.0 - 1.0 / self.base)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected