MCPcopy Create free account
hub / github.com/alceal/plotlars / is_log_axis

Function is_log_axis

crates/plotlars-plotters/src/render/axis.rs:53–57  ·  view source on GitHub ↗
(axis: &Option<Axis>)

Source from the content-addressed store, hash-verified

51// ── Log-axis helpers ────────────────────────────────────────────────────
52
53pub(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.
60pub(super) fn log_range(min: f64, max: f64) -> (f64, f64) {

Callers 1

render_numericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected