lichtung-plot-ndarray
Plot logical ndarray views directly, with the complete native renderer API re-exported unchanged. The standalone renderer does not depend on this adapter. Strided, reversed, transposed, Fortran and broadcast views need no contiguous intermediate.
use lichtung_plot_ndarray as nd;
use array;
All 25 families have direct new and source-bound from_data constructors.
The latter retains a safe read-only array descriptor for later logical-column
lookup; .into() releases it and moves the owned native plot. Direct vectors and
matrices are snapshotted immediately and do not become implicit lookup sources.
ColumnProjection::new(original_shape, &[(original_index, &one_column_source)])borrows only supplied columns while preserving original bounds and selections. Optional.with_identities(...)transports raw field identities independently of positions and display labels; identity-only entries do not supply values.- One-dimensional views bind variables;
usizeselects a logical source column. - Explicit many-y matrices/index collections preserve actual x.
indexedand column-distribution methods deliberately choose omitted-coordinate meanings. Heatmap::new(view2)binds a grid;records(x, y, fill)binds explicit cells.Matrix::new(view2)instead treats columns as scatter-matrix variables.(values.view(), present.view())binds exact-shape validity: true = present. Highlights and unique per-cell IDs are separate same-shape inputs.- Row/cell/generated-column facets and roles, supplied bounds, bar sample/estimate modes, independent point layers, statuses, native alpha mappings and independent significance results bind directly without public data-role wrappers.
- Histogram
geometry(lower, upper, height, stat)binds supplied bin heights. Addkdeorrug, with separate_from_dataforms for each component. Raincloudgeometry/geometry_with_huebind complete summary, density and point columns. Their source forms take the summary source and optional auxiliary sources. Every domain aligns independently; only the main source remains for lookup. Sample Histogramcomposite_precomputed_kde(x, y)and its independent-source form configure KDE+rug without changing samples, bins or stat.
Numeric primitives round normally to f64. Null is not NaN; raw categories remain
strings and exact IDs never pass through f64. Binding does not sort, drop,
aggregate, impute or infer statistics. Native families retain their scientific
policies and errors. Root Error/Result are native; binding returns standard
Result<_, AdapterError>, with lossless native-error conversion for ?.
Run the self-contained masked, strided synthetic heatmap:
# Optional: -- path/to/output-directory
This adapter is available on crates.io. See the peer English and Chinese guides and the shared adapter contract.