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

Method __init__

lib/matplotlib/scale.py:648–653  ·  view source on GitHub ↗
(self, linear_width)

Source from the content-addressed store, hash-verified

646 input_dims = output_dims = 1
647
648 def __init__(self, linear_width):
649 super().__init__()
650 if linear_width <= 0.0:
651 raise ValueError("Scale parameter 'linear_width' " +
652 "must be strictly positive")
653 self.linear_width = linear_width
654
655 def transform_non_affine(self, values):
656 return self.linear_width * np.arcsinh(values / self.linear_width)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected