Parameters ---------- axis : `~matplotlib.axis.Axis` The axis for the scale. .. note:: This parameter is unused and about to be removed in the future. It can already now be left out because of special preprocessing,
(self, axis=None, *, linear_width=1.0,
base=10, subs='auto', **kwargs)
| 714 | |
| 715 | @_make_axis_parameter_optional |
| 716 | def __init__(self, axis=None, *, linear_width=1.0, |
| 717 | base=10, subs='auto', **kwargs): |
| 718 | """ |
| 719 | Parameters |
| 720 | ---------- |
| 721 | axis : `~matplotlib.axis.Axis` |
| 722 | The axis for the scale. |
| 723 | |
| 724 | .. note:: |
| 725 | This parameter is unused and about to be removed in the future. |
| 726 | It can already now be left out because of special preprocessing, |
| 727 | so that ``AsinhScale()`` is valid. |
| 728 | |
| 729 | linear_width : float, default: 1 |
| 730 | The scale parameter (elsewhere referred to as :math:`a_0`) |
| 731 | defining the extent of the quasi-linear region, |
| 732 | and the coordinate values beyond which the transformation |
| 733 | becomes asymptotically logarithmic. |
| 734 | base : int, default: 10 |
| 735 | The number base used for rounding tick locations |
| 736 | on a logarithmic scale. If this is less than one, |
| 737 | then rounding is to the nearest integer multiple |
| 738 | of powers of ten. |
| 739 | subs : sequence of int |
| 740 | Multiples of the number base used for minor ticks. |
| 741 | If set to 'auto', this will use built-in defaults, |
| 742 | e.g. (2, 5) for base=10. |
| 743 | """ |
| 744 | super().__init__(axis) |
| 745 | self._transform = AsinhTransform(linear_width) |
| 746 | self._base = int(base) |
| 747 | if subs == 'auto': |
| 748 | self._subs = self.auto_tick_multipliers.get(self._base) |
| 749 | else: |
| 750 | self._subs = subs |
| 751 | |
| 752 | linear_width = property(lambda self: self._transform.linear_width) |
| 753 |
nothing calls this directly
no test coverage detected