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