LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.plot.enablePopout

Add a standalone-figure action to an axes context menu.

Syntax

labkit.app.plot.enablePopout(ax)

Inputs

ax
MATLAB axes or uiaxes handle that receives an "Open axes in new figure" context-menu item. Empty or invalid handles are ignored.

Outputs

None.

Description

The menu copies the current axes content, limits, labels, colors, and visible legend entries into a normal MATLAB figure with publication and export tools. Existing axes context-menu items are preserved. Children without their own context menu inherit the axes menu, including children added after this call. Repeated calls do not add duplicate menu items.

Failure Behavior

Empty or invalid handles are ignored. Errors raised while MATLAB creates the context menu, copies graphics, or opens the standalone figure are not caught and propagate from the originating graphics operation.

Typical Call

plot(ax, time, signal);
labkit.app.plot.enablePopout(ax);

Source

This page is generated from the MATLAB help text in +labkit/+app/+plot/enablePopout.m.