The symmetric logarithmic scale is an extension of the logarithmic scale that
also covers negative values. As with the logarithmic scale, it is particularly
useful for numerical data that spans a broad range of values, especially when there
are significant differences between the magnitudes of the numbers involved.
Example use of symlog (symmetric log) axis scaling.
Since each decade on a logarithmic scale covers the same amount of visual space
and there are infinitely many decades between a given number and zero, the symlog
scale must deviate from logarithmic mapping in a small range
(-linthresh, linthresh), so that the range is mapped to a finite visual space.
Generally, linthresh should be chosen so that no or only a few
data points are in the linear region. As a rule of thumb,
linthresh≈min∣x∣.
Linear scale
Additionally, the linscale parameter determines how much visual space should be
used for the linear range. More precisely, it defines the ratio of visual space
of the region (0, linthresh) relative to one decade.
The suitable value for linscale depends on the dynamic range of data. As most data
will be outside the linear region, you typically the linear region only to cover
a small fraction of the visual area.
Limitations and alternatives
The coordinate transform used by symlog has a discontinuous gradient at the
transition between its linear and logarithmic regions. Depending on data and
scaling, this will be more or less obvious in the plot.
The asinh axis scale is an alternative transformation that supports a wide
dynamic range with a smooth gradient and thus may avoid such visual artifacts.
See Asinh scale.
Total running time of the script: (0 minutes 5.000 seconds)