CloseFigure()

Summary

Closes a figure window.

Syntax

CloseFigure(string figure_name)

Argument Contents
figure_name The name of the figure, or null for the current figure

Notes

  • CloseFigure() closes the figure window without executing the Close() macro.

  • If there is a Done macro, it is called after the figure window is closed.

Example

CloseFigure("My Chart")

Error Codes

Error Type Meaning
NotFound The specified figure does not exist

See Also

Function Summary
CreateFigure() Creates a new window containing a figure
OpenFigure() Creates a figure window from a file
OpenFigureFromAnnotation() Creates a new figure window from a figure that appears in a layout
SaveFigure() Saves a figure to a file