FuncScale

class FuncScale(functions, transform=None, scale=None, major_locator=None, minor_locator=None, major_formatter=None, minor_formatter=None)[source]

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

Arbitrary scale with user-supplied forward and inverse functions and arbitrary additional transform applied thereafter. Input is a tuple of functions and, optionally, a Transform or ScaleBase instance.

Parameters
  • functions ((function, function) or ScaleBase) – Length-2 tuple of forward and inverse functions, or another ScaleBase from which the functions are drawn.

  • transform (Transform, optional) – Additional transform applied after the forward function and before the inverse function.

  • major_locator, minor_locator (Locator, optional) – The default major and minor locator. By default these are the same as LinearScale.

  • major_formatter, minor_formatter (Formatter, optional) – The default major and minor formatter. By default these are the same as LinearScale.

Attributes Summary

name

The registered scale name.