lichtung-plot-ndarray 0.3.0

Direct scientific plotting from logical ndarray views and columns
Documentation
//! Plot logical ndarray vectors, selected table columns and rectangular grids.
//!
//! The complete native renderer API is re-exported unchanged. Additional family
//! constructors bind foreign inputs eagerly; only `from_data` retains a read-only
//! source context for later logical-column lookup. `.into()` hands off an owned
//! native plot and releases that context. Validity pairs use **true = present**.
//! [`PlotAdapter::into_parts`] preserves source-free [`binding::BindingMetadata`] alongside
//! the native Plot; restore the matching pair with [`PlotAdapter::from_parts`] or
//! [`PlotAdapter::from_parts_with_data`] without reconstructing its configuration.
//! [`binding::ColumnProjection`] associates borrowed one-column sources with their original
//! logical coordinates; optional raw identities remain separate from display labels.
//!
//! Strided, transposed, reversed, Fortran and broadcast views follow logical index
//! order. Nulls and present NaNs stay distinct; numeric primitives round to f64.
//!
//! Native capability bounds also apply to adapter receivers:
//! ```compile_fail
//! use lichtung_plot_ndarray::{scales::AlphaEncoding, Scatter};
//! fn unsupported(plot: Scatter<'_>) {
//!     plot.line_alpha(AlphaEncoding::theme()); // Scatter has no line target.
//! }
//! ```

#![allow(
    clippy::needless_pass_by_value,
    reason = "ndarray views are lightweight borrowed descriptors conventionally accepted by value"
)]

mod alpha;
/// External data and source-binding policies.
pub mod binding;
mod capture;
mod element;
/// Native element declarations and local data-binding constructors.
pub mod elements;
mod error;
mod frontend;
mod input;
mod layers;
mod projection;
mod recipe_input;
#[doc(hidden)]
pub use recipe_input::NdarrayBinding;
mod significance;
mod snapshot;
mod source;

pub use error::AdapterError;
pub use frontend::{
    Bar, Beeswarm, Boxplot, Coefficient, Density, Dumbbell, Forest, Heatmap, Histogram,
    HorizontalBar, Interaction, Line, LinePath, Marginal, Matrix, PlotAdapter, PointInterval, Qq,
    Raincloud, Regression, Scatter, StackedBar, StackedHorizontalBar, Trajectory, Violin,
    Waterfall,
};
pub use lichtung_plot::{
    composition, coordinates, data, errors, formatting, guides, kind, layout, operation, output,
    plots, recipe, scales, stats, style, text, theme, BooleanValues, Canvas, CategoryValues, Color,
    Error, Layer, NumericFormat, NumericValues, Output, Plot, Result, Text, Theme,
};

#[cfg(test)]
mod tests;