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 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:
use lichtung_plot_ndarray::{AlphaEncoding, Scatter};
fn unsupported(plot: Scatter<'_>) {
plot.line_alpha(AlphaEncoding::theme()); // Scatter has no line target.
}Modules§
- kind
- Plot-family markers and sealed configuration capabilities. Plot-family markers and sealed configuration capabilities.
- stats
- Display-only statistics (KDE, CI, OLS for fit lines). Display-only statistics submodules.
Structs§
- Accent
Palette - Independent nonempty mark-accent seeds, always deterministically extendable.
- Alpha
Encoding - One complete explicit alpha-unit binding for a Plot paint target.
- Alpha
Values - Owned byte alpha values and their complete immutable mapping declaration.
- Annotation
Text Roles - Complete annotation text, independent of mark and axis chrome.
- Annotation
Theme - Complete immutable
AnnotationThemeappearance component. - Attached
- Marker for a significance mark attached to one rendered target.
- Axis
Spacing - Exact independent axis gaps, resolved from tick-label or axis-title em.
- Axis
Text Roles - Complete coordinate-axis typography.
- Axis
Theme - Complete coordinate/cell frame, tick, grid and local spacing appearance.
- Axis
Tick - A single tick on an axis: a data-space position and the string label to render next to it.
- Band
Fill Roles - Complete immutable
BandFillRolesappearance component. - BarInput
- Closed owned input for an ordinary vertical or horizontal bar plot.
- BarPoint
Layer - A complete strict point layer positioned at prepared ordinary-bar centers.
- BarPoint
Layer Adapter - Independent observations positioned at prepared native ordinary-bar centers.
- BarSamples
- Raw bar samples with sample-only generated error-bar configuration.
- Binding
Metadata - Source-free binding state paired with one native exact-family
Plot. - Body
Fill Roles - Complete immutable
BodyFillRolesappearance component. - Boolean
Values - Named nullable Boolean values.
- Bootstrap
- Percentile-bootstrap resampling specification.
- Bounds
- Explicit drawable lower and upper bounds.
- Canvas
- A typed grid of independently configured charts rendered on one canvas.
- Categorical
Color Map - Exact caller-owned colors for categorical plot levels.
- Categorical
Color Scale - One complete categorical selection: an ordered palette or an exact raw-key map.
- Category
Label Selection - Label eligibility only: categories, ticks, grid lines and marks remain complete.
- Category
Mark Geometry - Complete immutable
CategoryMarkGeometryappearance component. - Category
Values - Named nullable categorical values stored with stable dictionary encoding.
- Cell
Annotation Geometry - Complete immutable
CellAnnotationGeometryappearance component. - Cell
Mark Roles - Complete immutable
CellMarkRolesappearance component. - Coefficient
Input - Closed owned input for a model-coefficient plot.
- Color
- Complete RGBA paint with one opaque RGB identity and one byte alpha.
- Color
Domain - Finite exact color limits, including a constant domain.
- Color
Scales - Complete default qualitative, sequential and diverging mappings of one theme.
- Color
Stop - An exact semantic gradient offset in zero through one and an opaque color.
- Column
Projection - Borrowed one-column sources addressed by their original logical indices.
- Composition
Text Roles - Independent facet, composition, and embedded-prose text roles.
- Composition
Theme - Complete owner-local composition, header, facet and root-prose appearance.
- Confidence
Interval - Two-sided confidence-interval configuration.
- Connector
Stroke Roles - Complete immutable
ConnectorStrokeRolesappearance component. - Continuous
Color Scale - One complete continuous kind, optional gradient and optional exact domain.
- Contrast
Text Roles - Complete opaque candidates selected before font planning.
- Curve
Stroke Roles - Complete immutable
CurveStrokeRolesappearance component. - Data
Coordinate - A raw scientific coordinate. Category and series names are never aliases.
- Data
Fill Theme - Mapped fill alpha and a structural optional outline.
- Data
Line Roles - Complete immutable
DataLineRolesappearance component. - Data
Line Theme - Data-colored line with one independent alpha and the closed pattern input.
- Data
Outline Theme - Fixed paint or mapped RGB with an independent outline alpha.
- Data
Position - A typed scientific point, independent of drawing instructions.
- Density
Fill Roles - Complete immutable
DensityFillRolesappearance component. - Diverging
Gradient - Complete strictly ordered opaque
DivergingGradientwith exact zero/one endpoints. - Dumbbell
Endpoints - Explicit endpoint identities and colors for a dumbbell plot.
- Error
Bar - Closed generated error-bar taxonomy for raw bar samples.
- Estimate
Annotation Geometry - Complete immutable
EstimateAnnotationGeometryappearance component. - Facet
Cell - One exact panel owned by a faceted significance annotation.
- Facet
Spec - One complete generic-facet layout and numeric-axis sharing policy.
- Facet
Strip Spacing - Complete nonnegative owner-local
FacetStripSpacingrelationships. - Fill
Roles - Complete immutable
FillRolesappearance component. - Fixed
Fill Theme - Complete fixed fill paint and an independent structural optional outline.
- Font
Family - A literal family identity or one of the three host generic preferences.
- Font
Stack - Nonempty, ordered preferences; original named bytes and duplicates are retained.
- Frame
Sides - Nonempty set of physical coordinate-frame sides.
- Frame
Theme - Complete frame sides and independent stroke appearance.
- Gradient
Lengths - Positive minimum and at-least-minimum preferred continuous-guide lengths.
- Guide
Style - Closed visual style for a numeric guide line.
- Guide
Text Roles - Complete discrete and continuous guide typography.
- Header
Spacing - Complete nonnegative owner-local
HeaderSpacingrelationships. - Heatmap
Null RowAnnotation - Caller-owned annotation for one fully-null Cartesian heatmap row.
- Histogram
Geometry - Complete supplied density-axis histogram geometry.
- Histogram
Input - Closed owned source for a histogram.
- Interaction
Style - One exact point and connector style owned by an interaction group.
- Labels
- Immutable presentation rules for labels inferred from data identities.
- Legend
Frame Theme - Complete guide-container paint, optional independent outline and local corner radius.
- Legend
Spacing - Complete independent exact guide relationships, resolved against selected guide text em.
- Legend
Theme - Complete measured guide chrome, independent of guide content or placement policy.
- Mark
Extent Theme - Complete immutable
MarkExtentThemeappearance component. - Mark
Theme - Complete immutable
MarkThemeappearance component. - Neutral
Paint Roles - Complete immutable
NeutralPaintRolesappearance component. - Numeric
Compact Rule - An unrounded threshold, exact divisor and literal compact affixes.
- Numeric
Currency - Literal currency affixes, independent of any exchange or unit conversion.
- Numeric
Domain - Final scientific domain, without CSS geometry or invented logarithmic inverses.
- Numeric
Explanation - Instructions for one common explanation, retaining normal Text replacement.
- Numeric
Factors - Resolved exact factors and literal selected affixes for one member/common set.
- Numeric
Field - Minimum scalar width, independent of CSS geometry and numeric precision.
- Numeric
Format - Immutable scientific numeric presentation with explicitly selected locale.
- Numeric
Grouping - Right-to-left integer grouping with literal separators.
- Numeric
Labels - Owned final callback strings and an optional replacement common explanation.
- Numeric
Locale - A complete immutable numeric locale, selected explicitly per format.
- Numeric
Owner - Semantic producer description, never a kernel/backend handle.
- Numeric
Prefixes - The sole selected SI, compact or exact factor policy.
- Numeric
SetContext - Ordered complete semantic input and nonrecursive built-in helper.
- Numeric
Symbols - Literal signs and rate suffixes for one numeric locale.
- Numeric
Unit - Literal scientific unit text; it never infers conversion from its spelling.
- Numeric
Value - One exact source occurrence in a complete set.
- Numeric
Value Context - One original occurrence, retaining its complete set and helper precision.
- Numeric
Values - Named nullable numeric values stored as immutable native
f64data. - Opaque
Color - Opaque RGB identity; there is no alpha-discarding conversion from
Color. - Outline
Theme - Complete independent outline paint and positive CSS width.
- Output
- Opaque handle to one scene that has already been rendered.
- Pairwise
- Marker for a pairwise significance bracket between two rendered targets.
- Percentile
Interval - Central percentile interval configuration for original observations.
- 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. - Plot
Text Annotation - Caller-owned text block anchored inside a chart panel.
- PngOptions
- PNG export options for rasterizing the canonical SVG scene.
- Point
Layer - A strict supplemental point layer owned independently from the primary line.
- Point
Layer Adapter - An independent native point layer with its own optional array label context.
- Point
Outline Theme - A point outline owns one exact relationship to the selected point radius.
- Point
Radii - Complete immutable
PointRadiiappearance component. - Point
Roles - Complete immutable
PointRolesappearance component. - Point
Theme - Shared point appearance before selecting its final integral radius.
- Qualitative
Palette - Nonempty opaque categorical colors and their explicit capacity policy.
- Raincloud
Geometry - Complete supplied raincloud geometry in three independently aligned domains.
- Raincloud
Input - Closed owned source for a raincloud plot.
- Reference
Stroke Roles - Complete immutable
ReferenceStrokeRolesappearance component. - Relative
Spacing - Exact nonnegative dimensionless spacing, resolved against its consuming role’s metric.
- Root
Padding - Complete nonnegative owner-local
RootPaddingrelationships. - Root
Text Roles - Independent root and embedded Plot headings.
- Root
Title Spacing - Complete nonnegative owner-local
RootTitleSpacingrelationships. - Sequential
Gradient - Complete strictly ordered opaque
SequentialGradientwith exact zero/one endpoints. - SiPrefix
- A standard SI prefix, including neutral, deci/centi/deca/hecto and 2022 additions.
- Significance
- One caller-owned significance annotation with a compile-time placement.
- Significance
Geometry - Complete immutable
SignificanceGeometryappearance component. - Significance
Mark Style - Independent typography and clearance for exact significance marks.
- Sized
Point Theme - Complete immutable
SizedPointThemeappearance component. - Solid
Stroke Theme - Complete solid bracket stroke; its topology has no pattern edit.
- Source
Rows - Original source-row identities attached once to a plot’s aligned values.
- Standard
Deviation - Standard-deviation error-bar configuration.
- Standard
Error - Standard-error error-bar configuration.
- Stroke
Roles - Complete immutable
StrokeRolesappearance component. - Stroke
Theme - Complete stroke with the renderer’s one closed dash vocabulary.
- Summary
Stroke Roles - Complete immutable
SummaryStrokeRolesappearance component. - Supplemental
Point Theme - Complete immutable
SupplementalPointThemeappearance component. - Surface
Theme - Paints applied to renderer-owned drawing surfaces.
- Text
- Authored display text with optional complete appearance and layout instructions.
- Text
Anchor - A point of the complete measured block, independent of its line alignment.
- Text
Bounds - Explicit text-local finite maxima, independent of the parent’s assigned region.
- Text
Coordinate - One independently qualified coordinate of an authored text reference.
- Text
Ellipsis - An explicit derived-display program; the original source is never replaced.
- TextFit
- A font-size program, independent of terminal overflow handling.
- Text
Layout - Optional text layout instructions. Omitted fields retain owner defaults.
- Text
Offset - One exact represented finite displacement, not a data coordinate.
- Text
Orientation - A fixed screen angle, projected data direction or ordered tick-angle program.
- Text
Overflow - Complete-text presentation and its terminal fit action.
- Text
Panel - Validated prose content for one composed-canvas grid cell.
- Text
Panel Spacing - Complete nonnegative owner-local
TextPanelSpacingrelationships. - Text
Position - A semantic reference, separate from the selected point of the text block.
- Text
Rotation - One normalized clockwise screen angle, without decimal quantization.
- Text
Theme - Complete text appearance for one semantic typography role.
- Text
Visibility - Explicit text eligibility, independent of scientific ticks and marks.
- Theme
- Complete immutable appearance, independent of fonts discovered during rendering.
- Theme
Builder - Construction-only working copy of a complete
Theme. - Tick
Context - One immutable, actually assigned numeric-axis view.
- Tick
Generation - One validated selection for generated numeric tick positions.
- Tick
Theme - Complete tick stroke and positive integral CSS length.
- Typography
Theme - One complete retained typography value with all eighteen semantic roles.
- Value
Shelf Spacing - Complete immutable
ValueShelfSpacingappearance component. - Waterfall
Labels - Caller-owned labels for waterfall base and terminal annotations.
Enums§
- Adapter
Error - A structural ndarray binding failure, distinct from native scientific validation.
- Alpha
Semantics - Explicit explanatory semantics carried by immutable
AlphaValues. - Axis
Scale - Numeric scale used by interval-estimate plot families.
- Axis
Values - Native values accepted by a line plot’s horizontal axis.
- BarSpacing
- Spacing preset for multiple series within one bar category.
- Canvas
Category Labels - Categorical tick-label policy for composed canvas grids.
- Canvas
Legend Policy - Legend policy for a heterogeneous composed canvas.
- Category
Order - Display ordering for one categorical plot channel.
- Continuous
Scale Kind - Closed kind of a complete continuous-color selection.
- Coordinate
Axis - Scientific coordinate axis.
- Data
Area Corner - A corner inside one chart’s resolved mark panel.
- Error
- Error returned by plotting operations.
- Estimate
Status - Typed availability of one aligned estimate row.
- Facet
Scales - Numeric-axis sharing policy for generic facet panels.
- Generic
Font Family - Closed host-resolved generic font preferences, distinct from literal names.
- Guide
Spec - Supplemental numeric guide geometry.
- Guide
Text Role - An actual guide text role, independent of its shared Theme appearance.
- Heatmap
Annotations - In-cell value-label policy for heatmaps.
- Heatmap
Layout - Coordinate layout for a categorical heatmap grid.
- Histogram
Bins - Histogram bin-selection strategy.
- Histogram
Composite - Optional layers composed on a histogram density axis.
- Histogram
Kde - Density-curve source for an opt-in composite over sample-owned histogram input.
- Histogram
Stat - Histogram vertical-axis normalization.
- Label
Endpoints - Full scientific-domain endpoints forced into a categorical label selection.
- Legend
Composition - Semantic composition of one discrete legend, independently of its appearance.
- Legend
Policy - Visibility and placement policy for a plot legend.
- Legend
Position - Requested legend placement.
- Line
Path Style - Color and legend policy for source-ordered line paths.
- Line
Pattern - Closed connector patterns accepted by interaction styles.
- Negative
Zero - Whether actual or rounded negative zero retains its minus sign.
- Numeric
Alignment - Placement of field fill around a complete numeric presentation.
- Numeric
Factor - An exact divisor or an automatic common decimal-power request.
- Numeric
Group Repeat - How a positive grouping-size sequence continues after its last entry.
- Numeric
Identity - Raw semantic identity, before display aliases.
- Numeric
Notation - Decimal-point and exponent spelling for numeric presentation.
- Numeric
Operand - Exact operand representation, retaining binary64 source bits and power exponents.
- Numeric
Precision - Exact precision or one uniformly selected precision for a complete numeric set.
Construction through
NumericFormatvalidates all bounds. - Numeric
Promotion - Handling of a rounding carry into the next automatic prefix threshold.
- Numeric
Purpose - Whether a set is an intrinsic preference or a reached actual source.
- Numeric
Radix - Digit alphabet for integer numeric presentation.
- Numeric
Range Origin - Scientific domain provenance.
- Numeric
Rate - Exact rate scaling, independent of a literal suffix.
- Numeric
Role - Complete numeric consumer, independent of its selected typography.
- Numeric
Rounding - Exact rounding at the selected decimal quantum, before numeric emission.
- Numeric
Selection - Whether a scale is chosen separately, for the complete set, or explicitly.
- Numeric
Sign - Positive and negative sign presentation.
- Numeric
Symbol - A locale currency or integer-radix affix.
- Numeric
Unit Placement - Whether unit/factor text repeats or occupies one required owner slot.
- Palette
Capacity - Whether categorical seeds are a fixed supply or may be extended deterministically.
- Plot
Kind - Which plot type a
crate::Plotwill produce. - PngCompression
- High-level PNG compression presets.
- PngSizing
- Mutually exclusive PNG sizing modes.
- Point
Shape - Closed point shapes accepted by interaction styles.
- QqLine
- Reference-line policy for a normal Q-Q plot.
- RawOverlay
- Original-observation overlay for boxplots and violin plots.
- Regression
Band - Confidence-band policy for a generated simple OLS regression plot.
- Significance
Mark - Exact significance text or the p-value used to derive it.
- Significance
Target - One rendered categorical target for a significance annotation.
- Stroke
Pattern - Closed line-stroke patterns accepted by the private backend protocol.
- Text
Alignment - Physical horizontal alignment within a text owner’s local span.
- Text
Direction - Base paragraph direction, independent of physical line alignment.
- Text
Elision - Which end of the original source an ellipsis removes.
- Text
Failure - Terminal action for an actual text-fit miss, never for font/projection errors.
- Text
FitGrouping - Whether eligible members select separate sizes or one common size.
- Text
FitPriority - Order complete-content fitting and explicitly permitted abbreviation.
- Text
Offset Frame - Coordinate frame for a signed CSS-pixel displacement.
- Text
Overlap - Whether actual label/annotation ink must avoid its peer owners.
- Text
Rotation Mode - How the selected block point relates to a rotation.
- Text
Weight - Closed text weights used by renderer-owned emphasis.
- Text
Wrapping - Soft-wrap policy; both choices preserve caller-authored mandatory breaks.
- Tick
Positions - Complete source-order positions, without labels or drawing instructions.
- Tick
Requirement - Whether a lattice is fixed or may try complete coarser candidates.
- Tick
Singleton - Position of an exact singleton, in the selected coordinate space.
- Tick
Space - Coordinate space for generated positions.
- Trailing
Zeros - Fractional trailing-zero handling after numeric rounding.
- Value
Sort - Direction used to order categories by their prepared rendered value.
Traits§
- Alpha
Input - Observation bytes or an unchanged native encoding; units remain native contracts.
- Alpha
Values Input - Exact non-null u8 variables or already-materialized native alpha values.
- Array
Element - Sealed primitive source elements. Role support is checked before reading slots.
- Array
Source - Sealed array-table inputs: two-dimensional views,
(values, present)pairs and explicitcrate::ColumnProjectiondescriptors. Rows are observations and selectors always address logical columns. - Axis
Input - Numeric or categorical trajectory x; Boolean input is never a numeric coordinate.
- Boolean
Element - Sealed Boolean input. Booleans are not implicit numeric 0/1.
- Boolean
Input - Sealed BooleanInput role: logical column index, foreign vector, validity pair or native values.
- Category
Element - Sealed raw string input, including nullable strings. No display conversion.
- Category
Input - Sealed CategoryInput role: logical column index, foreign vector, validity pair or native values.
- Columns
Input - Ordered logical source columns,
.., or a direct matrix/validity pair. - Numeric
Element - Sealed primitive numeric input, including its nullable
Optionform. - Numeric
Input - Sealed NumericInput role: logical column index, foreign vector, validity pair or native values.
- Numeric
Series Input - One numeric variable or explicit logical-column/matrix expansion.
- Significance
Facets - A category variable, crossed category variables or explicit native facet cells.
- Significance
Marks - Supplied p-values, typed native marks or explicitly mapped category variables.
- Significance
Targets - Category variables, category/series pairs or explicitly native target scalars/sequences.
- Source
RowElement - Sealed integer provenance input; IDs never pass through f64.
- Source
Rows Input - Exact source IDs: integer vectors, same-shape cell grids or native IDs.
Functions§
- significance_
attached - Prepare reusable native attached annotations from direct result variables.
- significance_
attached_ from_ data - Prepare reusable native attached annotations using an independent array source.
- significance_
attached_ in_ facet - Prepare reusable native attached annotations from direct result variables.
- significance_
attached_ in_ facet_ from_ data - Prepare reusable native attached annotations using an independent array source.
- significance_
attached_ in_ grid - Prepare reusable native attached annotations from direct result variables.
- significance_
attached_ in_ grid_ from_ data - Prepare reusable native attached annotations using an independent array source.
- significance_
pairwise - Prepare reusable native pairwise annotations from direct result variables.
- significance_
pairwise_ from_ data - Prepare reusable native pairwise annotations using an independent array source.
- significance_
pairwise_ in_ facet - Prepare reusable native pairwise annotations from direct result variables.
- significance_
pairwise_ in_ facet_ from_ data - Prepare reusable native pairwise annotations using an independent array source.
- significance_
pairwise_ in_ grid - Prepare reusable native pairwise annotations from direct result variables.
- significance_
pairwise_ in_ grid_ from_ data - Prepare reusable native pairwise annotations using an independent array source.
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.