plotkit-core 0.5.0

Core types and logic for the plotkit plotting library
Documentation
//! Core types and rendering logic for the plotkit plotting library.
//!
//! This crate provides the fundamental types (`Figure`, `Axes`, `Artist`),
//! the `Renderer` trait, and all chart rendering logic. It is backend-agnostic —
//! concrete renderers live in separate crates.
//!
//! Most users should use the `plotkit` umbrella crate instead of depending on
//! this crate directly.

#![deny(missing_docs)]

pub mod primitives;
pub mod renderer;
pub mod error;
pub mod series;
pub mod scale;
pub mod ticks;
pub mod theme;
pub mod layout;
pub mod annotations;
pub mod artist;
pub mod axes;
pub mod figure;
pub mod legend;
pub mod charts;
pub mod colormap;
pub mod colorbar;
pub mod decimate;

/// The plotkit-core prelude — import common types with a single `use` statement.
pub mod prelude {
    pub use crate::error::{PlotError, Result};
    pub use crate::figure::Figure;
    pub use crate::axes::{Axes, TwinSide};
    pub use crate::primitives::Color;
    pub use crate::scale::Scale;
    pub use crate::series::{IntoSeries, IntoCategories};
    pub use crate::theme::{Theme, LineStyle, Marker, Loc, GridAxis};
    pub use crate::colormap::Colormap;
    pub use crate::colorbar::{Colorbar, ColorbarOrientation};
    pub use crate::annotations::{ArrowStyle, TextAnnotation, Annotation};
    pub use crate::primitives::{HAlign, VAlign};
    pub use crate::decimate::DecimateMethod;
}