| 1 | /// Axis scaling mode. |
| 2 | #[derive(Debug, Clone, Copy, PartialEq, Default)] |
| 3 | pub 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 | |
| 17 | impl AxisScale { |
| 18 | /// Transform raw data value into plot-space value. |
nothing calls this directly
no outgoing calls
no test coverage detected