FUNCTION REFERENCE

figure

Create or select a figure.

Create or select a figure.

Syntax

figure

Syntax

figure(n)

Syntax

figure(Name, Value, ...)

figure opens a new figure and makes it current. figure(n) selects figure n, creating it if needed (1 to 1000000). At most 16 figures can be open. Name/Value pairs set figure properties such as Position, Units, Name, NumberTitle, Visible, Resize, WindowState, and Color. Position is [left bottom width height] in Units (default 'pixels', default [100 100 560 420]; 'normalized' uses a 1920x1080 reference screen, and 'inches'/'centimeters'/'points'/'characters' use 96 DPI). Desktop windows and exports without an explicit size use Position width and height (exportgraphics tight-crops to ink bounds and scales by Resolution/96, defaulting to 150 DPI).

Example

figure(2)   % figure 2 is current

Example

f = figure('Name', 'Signal', 'NumberTitle', 'off', 'Position', [100 100 600 400]);

Differences from MATLAB: Default InnerPosition/OuterPosition equal Position; WindowState and Resize are stored and applied to detached desktop windows where supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.