Interactively edit and annotate plots
plotedit toggles the state of plot edit mode for the current
figure. Plot edit mode allows you to use a graphical interface to edit and annotate plots
easily. In plot edit mode, you can label axes, change line styles, and add text, line, and
arrow annotations. If no current figure exists,
plotedit will create
plotedit( changes the state of plot edit
mode on the figure. For example,
plotedit("on") starts plot edit mode for
the current figure.
Turn On Plot Edit Mode
Start plot edit mode on a figure by calling the
f = figure; plotedit(f)
state — Plot edit mode state
Plot edit mode state, specified as one of these values:
"on"— Start plot edit mode.
"off"— End plot edit mode.
"toggle"— Switch plot edit mode between the
plot edit mode for the current figure.
fig — Target figure
Target figure, specified as a
Figure object. Use
fig to enable or disable plot edit mode on a specific figure
instead of the current figure.
plot edit mode on the figure
Start or end plot edit mode by clicking on the Edit Plot button in the figure toolbar.
Version HistoryIntroduced before R2006a
R2022a: Options for showing and hiding the Tools menu will be removed
The Tools menu will be removed in a future release. As a result,
"hidetoolsmenu" options for
plotedit will be removed in a future release. To interactively modify
graphics object properties, use
inspect to launch the Property Inspector