LabKit MATLAB Workbench

history

Figure Studio fixes publication-frame preview and axis controls

id: LK-20260721-figure-studio-plot-frame-preview
date: 2026-07-21
sequence: 154
type: fix
compatibility: compatible
component: `labkit_FigureStudio_app` | `0.6.0 -> 0.6.1`
scope: LabKit Core

Context

Figure Studio had treated a requested output size as a whole figure canvas. That made labels and titles consume the configured plot area, and resizing the preview could make the displayed typography unrelated to the eventual export. Copied UIAxes also needed a portable reconstruction path for reliable export.

Decision and rationale

Treat the requested width and aspect as the inner axes frame. Keep all publication-style calibration within Figure Studio, then calculate an outer figure from the live rendered text extents so visual styling cannot reduce the configured data area.

Changes

User and data impact

Existing Figure Studio projects remain compatible. Existing style sizes retain their meaning as a plot frame; the enclosing export figure may grow to avoid clipping external text. No scientific calculations or source figure data are changed.

Compatibility and migration

The project schema migrates existing style records without changing their stored data. UIAxes exports use the portable display snapshot only for the screen-specific aspect geometry that cannot be transferred to normal axes.

Validation

Evidence

The calibrated profile fixes the inner frame at 1237 by 942 pixels. Its generated output reports that same axes size while the enclosing figure grows only for required outer text and annotations.

Known limitations and follow-up

Manual review remains appropriate for native MATLAB graphics that cannot be represented by the portable package.