figure
Creates an figure window.
📝Syntax
f = figure()
f = figure(ID)
f = figure(H)
f = figure(propertyName, propertyValue)
f = figure(ID, propertyName, propertyValue)
f = figure(H, propertyName, propertyValue)
📥Input Arguments
Parameter Description
ID a scalar integer value: find or creates with ID.
H a scalar graphics object on an existing figure.
propertyName a scalar string or row vector character.
propertyValue a value.
📤Output Arguments
Parameter Description
f a graphics object: figure handle.
📄Description

figure creates figure.

Clicking on an figure automatically sets it as the current figure object.

See figure properties for the complete property list.

💡Examples
f = figure(1)
g = figure(2)
h = figure(3)
figure(g)
gcf()
figure('Name', 'Hello')
🔗See Also
figure propertiesgcfclose
🕔Version History
Version Description
1.0.0 initial version
1.2.0 Clicking on an figure automatically sets it as the current figure object.
1.7.0 CreateFcn, DeleteFcn, CloseRequestFcn, KeyPressFcn, KeyReleaseFcn, ButtonDownFcn callback added.
-- BeingDeleted property added.
1.8.0 Resize property added.
1.13.0 DevicePixelRatio property added.
1.14.0 WindowState property added.
-- Figure property documentation updated.
Edit this page on GitHub