deepbox/plot
Statistical & Structural Plots
Higher-level statistical, geometric, clustering, and structure-aware plotting helpers added across v1.0.0.
Advanced plotting
type PlotTheme
export interface PlotTheme { … }
A theme configuration for consistent plot styling.
type Plot3DOptions
export type Plot3DOptions = { readonly label?: string; readonly color?: Color; readonly linewidth?: number; readonly size?: number; readonly elevation?: number; readonly azimuth?: number; readonly alpha?: number; };
Rendering options for 3D plot elements.
Scatter3D
3D Scatter plot drawable.
Surface3D
3D Surface plot drawable.
Wireframe3D
3D Wireframe plot drawable.
kdeplot
export declare function kdeplot(data: Tensor, options?: PlotOptions & { bw_method?: "scott" | "silverman" | number; gridSize?: number; fill?: boolean; }): void;
Plot a kernel density estimate of a 1D dataset.
pairplot
export declare function pairplot(data: Tensor, options?: { featureNames?: readonly string[]; color?: string; size?: number; diagKind?: "hist" | "kde"; }): Figure;
Create a pair plot (matrix of scatter plots) for all variable pairs.
stem
export declare function stem(x: Tensor, y: Tensor, options?: PlotOptions & { baseline?: number; }): void;
Stem plot: vertical lines from baseline to data points with circle markers.
strip
export declare function strip(groups: readonly Tensor[], options?: { colors?: readonly string[]; labels?: readonly string[]; size?: number; jitter?: number; }): void;
Strip plot: jittered categorical scatter plot (Seaborn-style).
radar
export declare function radar(series: readonly Tensor[], options?: { colors?: readonly string[]; labels?: readonly string[]; linewidth?: number; }): void;
Radar / spider chart: multi-dimensional data on radial axes.
waterfall
export declare function waterfall(categories: readonly string[], values: Tensor, options?: { positiveColor?: string; negativeColor?: string; totalColor?: string; barWidth?: number; }): void;
Waterfall chart: cumulative positive/negative value changes.
quiver
export declare function quiver(x: Tensor, y: Tensor, u: Tensor, v: Tensor, options?: PlotOptions & { scale?: number; }): void;
Quiver plot: vector field arrows.
polar
export declare function polar(theta: Tensor, r: Tensor, options?: PlotOptions & { fill?: boolean; }): void;
Polar plot: data in polar coordinates (theta, r).
jointplot
export declare function jointplot(x: Tensor, y: Tensor, options?: { color?: string; bins?: number; xlabel?: string; ylabel?: string; title?: string; }): Figure;
Joint plot: scatter plot with marginal histograms (Seaborn-style `jointplot`).
plotDendrogram
export declare function plotDendrogram(linkage: readonly (readonly [number, number, number, number])[], nLeaves: number, options?: PlotOptions): void;
Plot a dendrogram from a linkage matrix.
plot-statistical.ts
import { jointplot, kdeplot, plotDendrogram, polar, radar } from "deepbox/plot";import { tensor } from "deepbox/ndarray";kdeplot(tensor([1, 2, 2, 3, 4, 5]), { color: "#0f766e" });jointplot(tensor([1, 2, 3]), tensor([2, 2.5, 4]), { title: "Joint plot" });plotDendrogram( [ [0, 1, 0.4, 2], [2, 3, 0.8, 3], ], 3);polar(tensor([0, 1, 2]), tensor([1, 2, 1.5]), { fill: true });radar([tensor([3, 4, 5, 2])], { labels: ["A", "B", "C", "D"] });