PowerScale

class PowerScale(power=1, inverse=False)[source]

Bases: proplot.scale._Scale, matplotlib.scale.ScaleBase

“Power scale” that performs the transformation

\[x^{c}\]
Parameters
  • 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}\).

Attributes Summary

name

The registered scale name

Methods Summary

limit_range_for_scale(vmin, vmax, minpos)

Return the range vmin and vmax limited to positive numbers.