class InverseScale(**kwargs)[source]

Bases: proplot.axistools._ScaleBase, matplotlib.scale.ScaleBase

Scales axis to be linear in the inverse of x. The scale function and inverse scale function are as follows.

\[y = x^{-1}\]

Construct a new scale.


The following note is for scale implementors.

For back-compatibility reasons, scales take an Axis object as first argument. However, this argument should not be used: a single scale object should be usable by multiple Axises at the same time.

Attributes Summary


The registered scale name.

Methods Summary

limit_range_for_scale(vmin, vmax, minpos)

Returns the range vmin and vmax limited to positive numbers.