Skip to main content

generate_log_minor_ticks

Function generate_log_minor_ticks 

Source
pub fn generate_log_minor_ticks(data_min: f64, data_max: f64) -> Vec<f64>
Expand description

Generates minor tick positions for a log10 scale.

Minor ticks are placed at multiples 2, 3, 4, 5, 6, 7, 8, 9 of each power of 10 within the given data range. These are the sub-decade ticks that give log-scale plots their characteristic visual pattern.

Returns only positions (no labels), since minor ticks are typically drawn without labels.