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 annotations;
21pub mod artist;
22pub mod axes;
23pub mod figure;
24pub mod legend;
25pub mod charts;
26pub mod colormap;
27pub mod colorbar;
28pub mod decimate;
29
30/// The plotkit-core prelude — import common types with a single `use` statement.
31pub mod prelude {
32    pub use crate::error::{PlotError, Result};
33    pub use crate::figure::Figure;
34    pub use crate::axes::{Axes, TwinSide};
35    pub use crate::primitives::Color;
36    pub use crate::scale::Scale;
37    pub use crate::series::{IntoSeries, IntoCategories};
38    pub use crate::theme::{Theme, LineStyle, Marker, Loc, GridAxis};
39    pub use crate::colormap::Colormap;
40    pub use crate::colorbar::{Colorbar, ColorbarOrientation};
41    pub use crate::annotations::{ArrowStyle, TextAnnotation, Annotation};
42    pub use crate::primitives::{HAlign, VAlign};
43    pub use crate::decimate::DecimateMethod;
44}