UI Guide#
Use this page when choosing widget display chrome for notebooks, exported HTML, reports, and GIF-like visuals. Maintainer-only frontend wording and review rules live in Widget UI protocol.
UI Modes#
Preset |
Why it exists |
Behavior |
|---|---|---|
|
Normal notebook analysis. |
Full widget UI, controls open, default annotations visible. |
|
Shared HTML that should open cleanly but remain adjustable. |
Controls start collapsed behind |
|
Clean figure in a report or manuscript-style notebook. |
Controls are removed with no GUI recovery button; stats, resize handles, and zoom badges are hidden. Titles, panel labels, and scale bars stay visible. |
|
Bare visual/GIF-like output. |
Title, controls, stats, panel titles, scale bars, resize handles, zoom badges, and equivalent optional chrome are hidden where supported. |
Explicit keyword arguments override the preset:
Show3D(
data,
ui_mode="presentation",
show_panel_titles=True,
show_scale_bar=True,
)
Common Controls#
Name |
Widgets |
Meaning |
|---|---|---|
|
Show1D, Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowEDS, ShowDiffraction |
Show or hide the top title row. |
|
Show1D, Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowEDS, ShowDiffraction |
Expose controls at all. Set |
|
Show1D, Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowEDS, ShowDiffraction |
Start with controls hidden. Show4DSTEM exposes this as programmatic/state control only; other widgets may also show a top |
|
Show1D, Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowEDS, ShowDiffraction |
Programmatically collapse controls. |
|
Show1D, Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowEDS, ShowDiffraction |
Programmatically expand controls. |
|
Show1D, Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowEDS, ShowDiffraction |
Programmatically toggle collapsed controls. |
|
Show1D, Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowDiffraction |
Show or hide mean/min/max/std readouts where the widget renders or computes them. |
|
Show2D, Show3D |
Show labels on individual image/volume panels. |
|
Show2D, Show3D |
Font size for per-panel labels. |
|
Show2D, Show3D, Show3DSlices, Show4DSTEM, ShowEDS |
Show or hide scale bars. Some widgets keep the saved-state trait name |
|
Show3D |
Show or hide resize handles. Show2D hides resize handles automatically when controls are collapsed. |
|
Show3D |
Show or hide the zoom readout. |
|
Show1D |
Show or hide trace legends. |
|
Show1D |
Show or hide plot grid lines. |
|
Show3DSlices |
Show or hide slice intersection guides. |
Recommended Uses#
Goal |
Recommended API |
Why |
|---|---|---|
Interactive notebook exploration |
|
Keeps every control available for analysis. |
Shared HTML with a clean first view |
|
Starts uncluttered while preserving a |
Report figure with labels and scale context |
|
Removes GUI controls while preserving scientific context. |
GIF-like visual with no chrome |
|
Hides title, controls, stats, panel labels, scale bars, and similar annotations. |
Prefer explicit overrides instead of one-off names. For example, use
show_scale_bar=False rather than widget-specific spellings like
hide_scalebar=True.