python proplot scale 坐标轴样式 对数坐标
Scale
Scale(scale, *args, **kwargs)[source]
Return a ScaleBase instance. This function is used to interpret the xscale, xscale_kw, yscale, and yscale_kw arguments when passed to format.
Parameters
scale (ScaleBase, str, or (str, …)) – The axis scale specification. If a ScaleBase instance already, the input argument is simply 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.
KeyClassDescription
'linear'LinearScaleLinear
'log'LogScaleLogarithmic
'symlog'SymmetricalLogScaleLogarithmic beyond finite space around zero
'logit'LogitScaleLogistic
'inverse'InverseScaleInverse
'function'FuncScaleArbitrary forward and backwards transformations
'sine'SineLatitudeScaleSine function (in degrees)
'mercator'MercatorLatitudeScaleMercator latitude function (in degrees)
'exp'ExpScaleArbitrary exponential function
'power'PowerScaleArbitrary power function
'cutoff'CutoffScaleArbitrary piecewise linear transformations
'quadratic'PowerScale (preset)Quadratic function
'cubic'PowerScale (preset)Cubic function
'quartic'PowerScale (preset)Quartic function
'db'ExpScale (preset)Ratio expressed as decibels
'np'ExpScale (preset)Ratio expressed as nepers
'idb'ExpScale (preset)Decibels expressed as ratio
'inp'ExpScale (preset)Nepers expressed as ratio
'pressure'ExpScale (preset)Height (in km) expressed linear in pressure
'height'ExpScale (preset)Pressure (in hPa) expressed linear in height
Other Parameters
*args, **kwargs – Passed to the ScaleBase class.
Returns
ScaleBase – The scale instance.