openfig

Restore a figure from a .fig file.

Syntax

openfig(filename)

openfig(..., createnew)

openfig(..., visibility)

Inputs

filename
A '.fig' file to open. The '.fig' file must be a file generated by the savefig command in Compose.
Type: string
Dimension: scalar
figureoption
Specifies whether a new figure will be created or if an existing one will be used. Can be either "new" or "reuse". If the option is "reuse" then an existing figure with the same 'filename' as the input file will be used. If one doesn't exist, a new figure will be created. If the option is ommited, a new figure will be created.
Type: string
Dimension: scalar
visibility
Sets the new figure's visibility, overriding the 'visible' property of the figure saved in the '.fig' file. Can be either "visible" or "invisible".
Type: integer
Dimension: scalar

Examples

Open a .fig file:
openfig('myFig.fig');
Use an existing figure:
openfig('myFig.fig', 'reuse');
Override visibility:
openfig('myFig.fig', 'invisible');