This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Specifying Target for Graphics Output

Controlling which figures and axes to target and how to update these objects

Functions

holdRetain current plot when adding new plots
isholdCurrent hold state
newplotDetermine where to draw graphics objects
clfClear current figure window
claClear axes

Topics

Responding to Hold State

This example shows how to test for the hold state and respond appropriately in user-defined plotting functions.

Use newplot to Control Plotting

This example shows how to prepare figures and axes for user-written plotting functions.

Control Graph Display

You can control which figures and which axes MATLAB® uses to display the result of plotting functions.

Prepare Figures and Axes for Graphs

MATLAB plotting functions rely on the values of the figure and axes NextPlot properties to determine whether to add, clear, or clear and reset the figure and axes before drawing the new graph.

Prevent Access to Figures and Axes

In some situations it is important to prevent particular figures or axes from becoming the target for graphics output.