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.
<insightdock/scale.h>
static
Scale
log_nice(
double data_min,
double data_max,
float pixel_min,
float pixel_max,
int max_ticks = 8);
ScaleType::Log scale with expanded nice domain.
| 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. |