Scale

Scale(scale, *args, **kwargs)[source]

Return a ScaleBase instance.

Parameters:

scale (ScaleBase, str, or tuple) – The axis scale specification. If a ScaleBase instance already, a copy.copy of the instance is returned. Otherwise, scale should be a string corresponding to one of the “registered” axis scales or axis scale presets (see below table).

If scale is a list or tuple and the first element is a “registered” scale name, subsequent elements are passed to the scale class as positional arguments.

Other Parameters:

*args, **kwargs – Passed to the ScaleBase class.

Returns:

matplotlib.scale.ScaleBase – A ScaleBase instance.