Skip to main content

plotkit_core/
lib.rs

1//! Core types and rendering logic for the plotkit plotting library.
2//!
3//! This crate provides the fundamental types (`Figure`, `Axes`, `Artist`),
4//! the `Renderer` trait, and all chart rendering logic. It is backend-agnostic —
5//! concrete renderers live in separate crates.
6//!
7//! Most users should use the `plotkit` umbrella crate instead of depending on
8//! this crate directly.
9
10#![deny(missing_docs)]
11
12pub mod primitives;
13pub mod renderer;
14pub mod error;
15pub mod series;
16pub mod scale;
17pub mod ticks;
18pub mod theme;
19pub mod layout;
20pub mod artist;
21pub mod axes;
22pub mod figure;
23pub mod legend;
24pub mod charts;
25pub mod colormap;
26
27/// The plotkit-core prelude — import common types with a single `use` statement.
28pub mod prelude {
29    pub use crate::error::{PlotError, Result};
30    pub use crate::figure::Figure;
31    pub use crate::axes::Axes;
32    pub use crate::primitives::Color;
33    pub use crate::scale::Scale;
34    pub use crate::series::{IntoSeries, IntoCategories};
35    pub use crate::theme::{Theme, LineStyle, Marker, Loc};
36    pub use crate::colormap::Colormap;
37}