Expand description
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:
use lichtung_plot_ndarray::{scales::AlphaEncoding, Scatter};
fn unsupported(plot: Scatter<'_>) {
plot.line_alpha(AlphaEncoding::theme()); // Scatter has no line target.
}Modules§
- binding
- External data and source-binding policies. Types and traits for native bindings to ndarray data.
- composition
- Fixed local image resources and native composition. Immutable fixed-source content and its physical placement.
- coordinates
- Coordinate axes, positions, domains and tick policies. Coordinate axes, positions, domains and tick policies.
- data
- Scientific input values and raw source identities. Private semantic value access shared by plot renderers.
- elements
- Native element declarations and local data-binding constructors. Native elements and local data-binding constructors.
- errors
- Typed failure reasons and operation effects. Structured diagnostics from actual binding, preparation and publication.
- formatting
- Scientific labels, number presentation and formatter contexts. Scientific labels, number presentation and formatter contexts.
- guides
- Legend and guide configuration. Legend and guide configuration.
- kind
- Plot-family markers and sealed configuration capabilities. Plot-family markers and sealed configuration capabilities.
- layout
- Layout and absolute publication-size configuration. Private plot and canvas layout modules.
- operation
- Cancellation and resource options for a single native operation. Per-call cancellation and operation phases.
- output
- Publication options. Publication options.
- plots
- Plot-family identities, scientific inputs and plot-specific configuration. Plot-family identities, scientific inputs and plot-specific configuration.
- recipe
- Portable native plotting declarations. Portable native declarations stored in versioned TOML documents. Reading and extracting declarations never prepares a rendered scene.
- scales
- Scientific color and opacity encodings. Scientific color and opacity encodings.
- stats
- Display-only statistics (KDE, CI, OLS for fit lines). Scientific computations, policies and owning results.
- style
- Shared mark styles and paint values. Shared mark styles and paint values.
- text
- Font configuration, text layout and positioning. Shared source syntax for authored and prepared display text.
- theme
- Complete theme components and immutable theme construction. Built-in publication themes and private appearance resolution.
Structs§
- Boolean
Values - Named nullable Boolean values.
- Canvas
- A typed grid of independently configured charts rendered on one canvas.
- Category
Values - Named nullable categorical values stored with stable dictionary encoding.
- Color
- Complete RGBA paint with one opaque RGB identity and one opacity coefficient.
- Layer
- An owning snapshot of one actual native scientific layer.
- Numeric
Format - Immutable scientific numeric presentation with explicitly selected locale.
- Numeric
Values - Named nullable numeric values stored as immutable native
f64data. - Output
- Opaque handle to one scene that has already been rendered.
- Plot
- One configured semantic plot backed by immutable Rust-native values.
- Plot
Adapter - A native exact-family plot and an optional safely borrowed array lookup context.
Direct views are snapshotted and released at each binding;
.into()releases the retained source and moves the owned native plot without rendering.Self::into_partsalso preserves the source-free binding metadata. - Text
- Authored display text with optional complete appearance and layout instructions.
- Theme
- Complete immutable appearance, independent of fonts discovered during rendering.
Enums§
- Adapter
Error - A structural ndarray binding failure, distinct from native scientific validation.
- Error
- Error returned by plotting operations.
Type Aliases§
- Bar
- ndarray frontend for native Bar.
- Beeswarm
- ndarray frontend for native Beeswarm.
- Boxplot
- ndarray frontend for native Boxplot.
- Coefficient
- ndarray frontend for native Coefficient.
- Density
- ndarray frontend for native Density.
- Dumbbell
- ndarray frontend for native Dumbbell.
- Forest
- ndarray frontend for native Forest.
- Heatmap
- ndarray frontend for native Heatmap.
- Histogram
- ndarray frontend for native Histogram.
- Horizontal
Bar - ndarray frontend for native HorizontalBar.
- Interaction
- ndarray frontend for native Interaction.
- Line
- ndarray frontend for native Line.
- Line
Path - ndarray frontend for native LinePath.
- Marginal
- ndarray frontend for native Marginal.
- Matrix
- ndarray frontend for native Matrix.
- Point
Interval - ndarray frontend for native PointInterval.
- ndarray frontend for native Qq.
- Raincloud
- ndarray frontend for native Raincloud.
- Regression
- ndarray frontend for native Regression.
- Result
- Result returned by plotting operations.
- Scatter
- ndarray frontend for native Scatter.
- Stacked
Bar - ndarray frontend for native StackedBar.
- Stacked
Horizontal Bar - ndarray frontend for native StackedHorizontalBar.
- Trajectory
- ndarray frontend for native Trajectory.
- Violin
- ndarray frontend for native Violin.
- Waterfall
- ndarray frontend for native Waterfall.