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
15
16
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Coordinate system types.

/// Coordinate system for the chart.
#[derive(Clone, Debug, Default)]
pub enum CoordSystem {
    /// Standard Cartesian (x right, y up).
    #[default]
    Cartesian,
    /// Flipped: x and y axes swapped (horizontal bars).
    Flipped,
    /// Polar coordinates (r, θ) — **not yet implemented**.
    /// Selecting this will produce a compile-time error.
    #[doc(hidden)]
    Polar,
}