SVG & PNG Export, Fullscreen Focus & Table Scripts¶
Every chart across LEAP — core statistical reports, Interactive Graph Builder, engineering workbenches, and Modern Docked views — supports deterministic vector SVG export, high-DPI PNG export (1x–4x), responsive resizing, and Fullscreen Focus (F11 / Ctrl+Shift+F, Esc to restore), alongside Save Script to Table.


Universal SVG & High-DPI PNG export¶
All plots render through a shared deterministic 2D scene engine (leap_plot::export::PlotScene) that produces byte-identical vector SVG and anti-aliased RGBA PNGs with zero external binaries:
- One-click & unified dialog: Every report chart section header (
SVG/PNG/Fullscreen), report...menu (Export SVG,Export PNG,Export Plot...), Graph Builder toolbar (Export SVG,Export PNG,Export...), engineering workbench header, and Modern Docked panel exposes export controls. The unified Export Plot modal configures format (SVG/PNG), Light (Print) / Dark / Follow UI theme, logicalW x H, PNG scale (1x/2x/3x), and destination path. - Full chart coverage:
- Core reports: Distribution (histogram + box strip), Fit Y by X (scatter + OLS + 95% CI/PI bands), Fit Model (Actual vs Predicted & Residual vs Fitted), Multivariate (Scree & PC1 vs PC2), Contingency (stacked proportion bars).
- Interactive Graph Builder: all 6 layers (
Scatter,Line,Smooth,Box,Bar,Histogram),Smootheroverlay,Colorgrouping,Wrapmulti-panel faceting,Hiddenomission, andLabeledpoint annotations. - Engineering workbenches: DOE Desirability, Quality (SPC, Capability, Gage R&R), Reliability (Kaplan–Meier, Life Test, Cox/ALT), Time Series & DSP (Forecast + fan, ACF, PACF, Welch PSD, Butterworth filter), and Bayesian & Mixed Models (Conjugate posterior, MCMC 95% HDI, LMM BLUPs).
- CLI parity: Use
leap graph-image <file> --kind scatter|line|histogram --format svg|png --scale 2 --theme light|dark --out plot.png(alongsideleap graph-svgandleap export-svg).
Resizable child windows & Fullscreen Focus¶
- Every floating report window, Graph Builder window, and engineering workbench is resizable with responsive plot areas that scale smoothly to the available width and height (preserving user-resized geometry across frames).
- Click Fullscreen (F11) on any window header, Fullscreen on any individual chart section, or press
F11/Ctrl+Shift+Fto expand the active window or chart to fill the full workbench canvas. PressEsc(or click Restore (Esc)) to return to the exact prior floating window position and size.
Sidebar TableScripts¶
Each saved script is a TableScript (crates/leap-app/src/sidebar.rs) with id, label, kind, and an opaque payload_json string. The sidebar lists them under the Table pane with a Run button per entry; pressing Run emits RunScript(<id>), which the app dispatches (e.g. re-opening the report or re-rendering).
Scripts are persisted in the .leapw workspace document under sidebar.scripts and are restored on open.
Save Script to Table from reports¶
Report windows expose a per-section action menu (section title, chevron, action menu) that includes Save Script to Table. The script is derived from the report's state (save_script_for_window):
- Multi-row / launch-request reports — payload
{"platform": <platform>, "y": [...], "x": [...], "by": [...], "weight": ..., "freq": ...}(platform-specific). - Fit Y by X — payload
{"platform": "fit_y_by_x", "y": [y], "x": [x]}. - Distribution —
{"platform": "distribution", "y": [col]}. - Fit Model —
{"platform": "fit_model", "y": [y]}. - Multivariate —
{"platform": "multivariate", "y": [labels]}. - Contingency —
{"platform": "contingency", "y": [y], "x": [x]}. - Text-only —
{"platform": <platform>}.
The id is script-<platform>-<window_id>; the kind is the platform id; the label is the report title.
Save Script to Table from Graph Builder¶
The Graph Builder's Save Script to Table button appends a script with:
- id
script-graph-builder-<next_id> - label
Graph Builder (<y> vs <x>) - kind
graph_builder - payload
{"platform": "graph_builder", "x": [x], "y": [y]}
Related pages: