Plot Editor | Search  Help Desk |
MATLAB Handle Graphics and the Plot Editor
The Plot Editor provides a graphical user interface for performing many of MATLAB's graphics commands and Handle Graphics® functions. You can use both MATLAB graphics commands and the Plot Editor to modify the properties of a figure, but if you do so, note these differences.Annotation Differences
Annotations you create using thetext
and line
commands are anchored to the axes, meaning they move with the axes. Annotations you create using the Plot Editor are independent of the axes. Plot Editor annotations are part of a transparent axes that overlays the axes containing the plots. If you move the axes, annotations created with the Plot Editor do not move with the axes and you will probably have to reposition them.
If you create an annotation in the Plot Editor, you can use gco
to get the handle for that annotation and then perform other MATLAB commands on that object.
To make annotations that move with the axes, create the annotations using the text
and line
commands. Then you can edit the annotations in the Plot Editor. Changes you make to the annotations in the Plot Editor are reflected in the axes properties, which you can see by using the get
command.
Font Differences
To create special characters in text, such as Greek letters or mathematical symbols, be sure to use TeX sequences - see thetext
command string
property. If instead you create the special characters by using the Edit Font Properties dialog box and selecting the Symbol font family, you will not be able to edit that text object using MATLAB commands.