reference
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);Related APIs
labkit.app.layout.plotArea— Add one or more axes rendered by an App-owned renderer.labkit.app.plot.clampPointToAxes— Keep data coordinates inside the visible axes box.labkit.app.plot.clearAxes— Prepare an axes for an app-owned redraw.labkit.app.plot.fitAxesToGraphics— Fit axes limits to finite plotted X/Y data.labkit.app.plot.fitCanvasToSource— Fit a preview axes into a fixed-aspect pixel frame.labkit.app.plot.offsetPointByAxesFraction— Move data coordinates by normalized axes fractions.labkit.app.plot.showMessage— Show a centered empty-state message in an axes.
Source
This page is generated from the MATLAB help text in +labkit/+app/+plot/enablePopout.m.