Bases: _Scale
, ScaleBase
Axis scale composed of arbitrary piecewise linear transformations. The axis can undergo discrete jumps, “accelerations”, or “decelerations” between successive thresholds.
*args (thresh_1
, scale_1
, ...
, thresh_N
, [scale_N]
, optional) – Sequence of “thresholds” and “scales”. If the final scale is omitted (i.e. you passed an odd number of arguments) it is set to 1
. Each scale_i
in the sequence can be interpreted as follows:
If scale_i < 1
, the axis is decelerated from thresh_i
to thresh_i+1
. For scale_N
, the axis is decelerated everywhere above thresh_N
.
If scale_i > 1
, the axis is accelerated from thresh_i
to thresh_i+1
. For scale_N
, the axis is accelerated everywhere above thresh_N
.
If scale_i == numpy.inf
, the axis discretely jumps from thresh_i
to thresh_i+1
. The final scale scale_N
cannot be numpy.inf
.
Example
>>> import proplot as pplt >>> import numpy as np >>> scale = pplt.CutoffScale(10, 0.5) # move slower above 10 >>> scale = pplt.CutoffScale(10, 2, 20) # move faster between 10 and 20 >>> scale = pplt.CutoffScale(10, np.inf, 20) # jump from 10 to 20
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4