Graphics |
Selecting Objects in a Graph
To select an object in a graph,
Selecting Multiple Objects
To select multiple objects at the same time,
You can perform actions on all the selected objects. For example, to remove a textbox annotation and an arrow annotation from a graph, select the objects and then select Cut from the Edit menu.
Deselecting Objects
To deselect an object, move the cursor off the object onto the figure window background and click the left mouse button. You can also shift+click on a selected object to deselect it.
Cutting, Copying, and Pasting Objects
To cut an object from a graph, or copy and paste an object in a graph, perform these steps:
Alternatively, with plot edit mode enabled, you can right-click on an object and then select an editing command from the context menu associated with the object.
Moving and Resizing Objects
To move or resize an object in a graph, perform these steps:
To move the object, drag it to the new location.
To resize the object, drag a selection handle.
Setting Object Properties
In MATLAB, every object in a graph supports a set of properties that control the graph's appearance and behavior. For example, line objects have properties that control thickness, color, and line style.
Double-clicking on an object displays the Property Editor. To edit the properties of the axes or figure, double-click on a region that does not contain other objects.
See The Property Editor for more information.
Undo/Redo -- Eliminating Mistakes
The figure Edit menu contains two items that enable you to undo recent operation.
Undo -- Remove the effect of the last operation.
Redo -- Perform again the last operation that you removed by selecting Undo.
For example, if you create a plot, zoom in, pan the view, and then undo the pan operation, the menu looks as follows:
You could now undo the previous zoom operation or redo the pan operation you just undid.
Using Plot Edit Mode | Saving Your Work |
© 1994-2005 The MathWorks, Inc.