class PowerScale(power=1, inverse=False, *, minpos=1e-300, **kwargs)[source]

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

Returns a “power scale” that performs the transformation

  • power (float, optional) – The power \(c\) to which \(x\) is raised.

  • inverse (bool, optional) – If True, the “forward” direction performs the inverse operation \(x^{1/c}\).

  • minpos (float, optional) – The minimum permissible value, used to truncate negative values.

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.