insightdock::charts::Scale::log_nice

Build a ScaleType::Log scale with a "nice" (power-of-10 / 1-2-5 mantissa) domain and tick set, mirroring linear_nice for logarithmic axes.

Synopsis

Declared in <insightdock/scale.h>
static
Scale
log_nice(
    double data_min,
    double data_max,
    float pixel_min,
    float pixel_max,
    int max_ticks = 8);

Return Value

Configured ScaleType::Log scale with expanded nice domain.

Parameters

Name Description
data_min Smallest data value; values <= 0 are clamped to a small positive floor, since a logarithmic domain cannot include zero or negative numbers.
data_max Largest data value.
pixel_min Pixel for domain min.
pixel_max Pixel for domain max.
max_ticks Maximum tick count hint.

Created with MrDocs