esoc-chart 0.1.0

High-level charting API built on esoc-gfx — matplotlib-equivalent for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Axis scale types.

/// Scale type for an axis.
#[derive(Clone, Debug, Default)]
pub enum Scale {
    /// Linear scale (default).
    #[default]
    Linear,
    /// Logarithmic scale (base 10).
    Log,
    /// Categorical scale with string labels.
    Categorical(Vec<String>),
}