Skip to main content

Crate plotine_core

Crate plotine_core 

Source
Expand description

Core primitives for plotine: geometry, color, transforms, scales, and ticks.

Re-exports§

pub use color::Color;
pub use color::ColorParseError;
pub use colormap::Cmap;
pub use colormap::Colormap;
pub use colormap::Norm;
pub use colormap::SegmentedColormap;
pub use datetime::civil_from_unix;
pub use datetime::format_concise_datetime_ticks;
pub use datetime::format_unix_tick;
pub use datetime::unix_from_civil;
pub use datetime::DatetimeLocator;
pub use error::PlotError;
pub use error::Result;
pub use geom::Point;
pub use geom::Rect;
pub use geom::Size;
pub use scale::LinearScale;
pub use scale::LogScale;
pub use scale::Scale;
pub use scale::ScaleKind;
pub use scale::ScaleType;
pub use scale::SymlogScale;
pub use ticks::format_aligned_ticks;
pub use ticks::ticks_from_values;
pub use ticks::Tick;
pub use ticks::TickLocator;
pub use transform::Affine;
pub use transform::DataToPixel;

Modules§

color
Strongly-typed sRGB colors with perceptually-minded defaults.
colormap
Continuous colormaps (perceptually uniform defaults) and value norms.
datetime
Unix-timestamp datetime helpers for axis ticks (UTC, no extra deps).
error
Fallible operations return Result with actionable PlotError variants.
geom
Lightweight geometry helpers shared across layers.
scale
Continuous scales mapping data values into a normalized [0, 1] domain.
ticks
Tick location for linear / log / symlog axes.
transform
Coordinate transform pipeline: data → unit → pixel.