MATLAB Function Reference | ![]() ![]() |
Start plot edit mode to allow editing and annotation of plots
Syntax
plotedit on
plotedit off
plotedit
plotedit('state')
plotedit(h)
plotedit(h,'state'
)
Description
starts plot edit mode for the current figure, allowing you to use a graphical interface to annotate and edit plots easily. In plot edit mode, you can label axes, chang line styles, and adding text, line, and arrow annotations.plotedit on
ends plot mode for the current figure.plotedit off
toggles the plot edit mode for the current figure.plotedit
toggles the plot edit mode for the figure specified by figure handle plotedit(h)
h
.
plotedit('state')
specifies the plotedit
state for the current figure. Values for state
can be as shown.
Value for state |
Description |
on |
Starts plot edit mode |
off |
Ends plot edit mode |
showtoolsmenu |
Displays the Tools menu in the menu bar |
hidetoolsmenu |
Removes the Tools menu from the menu bar |
Note
hidetoolsmenu is intended for GUI developers who do not want the Tools menu to appear in applications that use the figure window.
|
specifies the plotedit(h,'state')
plotedit
state
for figure handle h
.
Plot Editing Mode Graphical Interface Components
Help
For more information about editing plots, select Plot Editing from the Figure window Help menu. For help with other MATLAB graphics features, select Creating Plots.
Examples
Start plot edit mode for figure 2:
plotedit(2)
End plot edit mode for figure 2:
plotedit(2, 'off')
Hide the Tools menu for the current figure:
plotedit('hidetoolsmenu')
See Also
axes
, line
, open
, plot
, print
, saveas
, text
, propedit
![]() | plot3 | plotmatrix | ![]() |