CutoffScale(axis, scale, lower, upper=None, **kwargs)[source]¶
Axis scale with arbitrary cutoffs that “accelerate” parts of the axis, “decelerate” parts of the axes, or discretely jumps between numbers.
upperis not provided, you have the following two possibilities.
scaleis greater than 1, the axis is “accelerated” to the right of
scaleis less than 1, the axis is “decelerated” to the right of
upperis provided, you have the following three possibilities.
numpy.inf, this puts a cliff between
upper. The axis discretely jumps from
scaleis greater than 1, the axis is “accelerated” between
scaleis less than 1, the axis is “decelerated” between
Axis) – The matplotlib axis. Required for compatibility reasons.
scale (float) – Value satisfying
0 < scale <= numpy.inf. If
scaleis greater than
1, values to the right of
lower, or between
upper, are “accelerated”. Otherwise, values are “decelerated”. Infinity represents a discrete jump.
lower (float) – The first cutoff point.
upper (float, optional) – The second cutoff point (optional, see above).
Add method for drawing diagonal “cutoff” strokes. See this post for class-based and multi-axis solutions.
The registered scale name.