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

Class InvertedAsinhTransform

lib/matplotlib/scale.py:662–674  ·  view source on GitHub ↗

Hyperbolic sine transformation used by `.AsinhScale`

Source from the content-addressed store, hash-verified

660
661
662class InvertedAsinhTransform(Transform):
663 """Hyperbolic sine transformation used by `.AsinhScale`"""
664 input_dims = output_dims = 1
665
666 def __init__(self, linear_width):
667 super().__init__()
668 self.linear_width = linear_width
669
670 def transform_non_affine(self, values):
671 return self.linear_width * np.sinh(values / self.linear_width)
672
673 def inverted(self):
674 return AsinhTransform(self.linear_width)
675
676
677class AsinhScale(ScaleBase):

Callers 1

invertedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…