Graphics Previous page   Next Page

Selecting Objects in a Graph

To select an object in a graph,

  1. Start plot edit mode.
  2. Move the cursor over the object and click it.
  1. Selection handles appear on the selected object.

Selecting Multiple Objects

To select multiple objects at the same time,

  1. Start plot edit mode.
  2. Move the cursor over an object and shift+click to select it. Repeat for each object you want to select.

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:

  1. Start plot edit mode.
  2. Select the object.
  3. Select the Cut, Copy, or Paste option from the Edit menu or use standard shortcut keys for your platform.

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:

  1. Start plot edit mode.
  2. For axes objects only: unlock the axes by right-clicking on an empty region and choosing Unlock Axes Position from the context menu.
  3. Select the object. Selection handles appear on the object.

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.


Previous page  Using Plot Edit Mode Saving Your Work Next page

© 1994-2005 The MathWorks, Inc.