(axis: &Option<Axis>)
| 51 | // ── Log-axis helpers ──────────────────────────────────────────────────── |
| 52 | |
| 53 | pub(super) fn is_log_axis(axis: &Option<Axis>) -> bool { |
| 54 | axis.as_ref() |
| 55 | .and_then(|a| a.axis_type.as_ref()) |
| 56 | .is_some_and(|t| matches!(t, AxisType::Log)) |
| 57 | } |
| 58 | |
| 59 | /// Transform a range to log10 space, clamping the lower bound to a positive value. |
| 60 | pub(super) fn log_range(min: f64, max: f64) -> (f64, f64) { |