lichtung-plot-ndarray 0.1.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 [`BindingMetadata`] alongside
//! the native Plot; restore the matching pair with [`PlotAdapter::from_parts`] or
//! [`PlotAdapter::from_parts_with_data`] without reconstructing its configuration.
//! [`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::{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"
)]

pub use lichtung_plot::*;

mod alpha;
mod element;
mod error;
mod frontend;
mod input;
mod layers;
mod projection;
mod significance;
mod snapshot;
mod source;

pub use alpha::{AlphaInput, AlphaValuesInput};
pub use element::{
    ArrayElement, BooleanElement, CategoryElement, NumericElement, SourceRowElement,
};
pub use error::AdapterError;
pub use frontend::*;
pub use input::{
    AxisInput, BooleanInput, CategoryInput, ColumnsInput, NumericInput, NumericSeriesInput,
    SourceRowsInput,
};
pub use layers::{BarPointLayerAdapter, PointLayerAdapter};
pub use projection::ColumnProjection;
pub use significance::*;
pub use source::ArraySource;

#[cfg(test)]
mod tests;