MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / AxisScale

Enum AxisScale

src/axis_scale.rs:3–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/// Axis scaling mode.
2#[derive(Debug, Clone, Copy, PartialEq, Default)]
3pub enum AxisScale {
4 /// Linear axis: displayed value is the raw data value.
5 #[default]
6 Linear,
7
8 /// Logarithmic axis: displayed value is `log_{base}(raw)`.
9 ///
10 /// Only positive values are representable on this axis.
11 Log {
12 /// The base of the logarithm.
13 base: f64,
14 },
15}
16
17impl AxisScale {
18 /// Transform raw data value into plot-space value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected