Using 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 of the selected objects. For example to remove a text 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 3 Select the Cut, Copy, or Paste option from the Edit menu or use standard shortcut keys for your platform Iternatively, 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 objec Note If you cut an axes label or title and then paste it back into a figure the label or title is no longer anchored to the axis. If you move the axes, the label or title will not move with the axes Moving and Resizing Objects To move or resize an object in a graph, perform these steps 1 Start plot edit mode 17
Using Plot Edit Mode 1-7 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 of the selected objects. For example, to remove a text 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. Note If you cut an axes label or title and then paste it back into a figure, the label or title is no longer anchored to the axis. If you move the axes, the label or title will not move with the axes. Moving and Resizing Objects To move or resize an object in a graph, perform these steps: 1 Start plot edit mode
I Overview of MatlaB graphics m 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 Note You can move but cannot resize text objects Editing Objects in a Graph In MATLAB, every object in a graph supports a set of properties that control the graphs appearance and behavior For example line objects suppor properties that control thickness, color, and line style In plot edit mode, MATLAB provides a graphical user interface to object properties called the Property Editor. The Property Editor is a dialog box that supports a specific set of tabbed panels for each object you can select. For more nformation, see "Using the Property Editor"on page 1-15
1 Overview of MATLAB Graphics 1-8 2 For axes objects only: unlock the axes by right-clicking on it 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. Note You can move, but cannot resize text objects. Editing Objects in a Graph In MATLAB, every object in a graph supports a set of properties that control the graph’s appearance and behavior. For example, line objects support properties that control thickness, color, and line style. In plot edit mode, MATLAB provides a graphical user interface to object properties called the Property Editor. The Property Editor is a dialog box that supports a specific set of tabbed panels for each object you can select. For more information, see “Using the Property Editor” on page 1-15
Saving your Work Saving y。urW。rk After editing a graph, you can: Save your work in a format that can be opened during another MATLAB Save your work in a format that can be used by other applicati Saving a Graph in MAT-File Format MATLAB supports a binary format in which you can save figures so that they can be opened in subsequent MATLAB sessions. MATLAB assigns these files the. fig file name extensio To save a graph in a figure file: 1 Select Save from the figure window File menu or click the Save button on ar. If this is the first time you are saving the file, the Save As dialog 2 Make sure that the Save as type is Fig-file 3 Specify the name you want assigned to the figure file 4 Click OK The graph is saved as a figure file (. fig), which is a binary file format used to store figures You can also use the saveas command If you want to save the figure in a format that can be used by another application, see "Saving to a Different Format (Exporting Figures)on page 1-10. a Figure file To open a figure file, perform these steps 1 Select Open from the File menu or click the Open button on the toolbar
Saving Your Work 1-9 Saving Your Work After editing a graph, you can: • Save your work in a format that can be opened during another MATLAB session. • Save your work in a format that can be used by other applications. Saving a Graph in MAT-File Format MATLAB supports a binary format in which you can save figures so that they can be opened in subsequent MATLAB sessions. MATLAB assigns these files the .fig file name extension. To save a graph in a figure file: 1 Select Save from the figure window File menu or click the Save button on the toolbar. If this is the first time you are saving the file, the Save As dialog box appears. 2 Make sure that the Save as type is Fig-file. 3 Specify the name you want assigned to the figure file. 4 Click OK. The graph is saved as a figure file (.fig), which is a binary file format used to store figures. You can also use the saveas command. If you want to save the figure in a format that can be used by another application, see “Saving to a Different Format (Exporting Figures)” on page 1-10. Opening a Figure File To open a figure file, perform these steps: 1 Select Open from the File menu or click the Open button on the toolbar
I Overview of MatlaB graphics 2 Select the figure file you want to open and click OK The figure file appears in a new figure window. You can also use the open command Saving to a Different Format(Exporting Figures To save a figure in a format that can be used by another application, such as the standard graphics file formats TIFF or EPS, perform these steps 1 Select Export from the figure window File menu. The export dialog box appears. 2 Select the format from the list of formats in the Save as type: menu. This selects the standard filename extension given to files of that type 3 Enter the name you want to give the file 4 Click save Copying a Figure to the Clipboard On Windows systems, you can also copy a figure to the clipboard and then paste it into another application 1 Select Copy Options from the Figure window Edit menu. The Copying Options page of the Preferences dialog box appears 2 Complete the fields on the Copying Options page and click OK. 3 Select Copy Figure from the Edit menu. The figure is copied to the windows clipboard. You can then paste the figure from the Windows clipboard into a file in anot Printi g Figure Befo 1 Select Page Setup from the figure window File menu to set printing options The Page Setup dialog box opens 1-10
1 Overview of MATLAB Graphics 1-10 2 Select the figure file you want to open and click OK. The figure file appears in a new figure window. You can also use the open command. Saving to a Different Format (Exporting Figures) To save a figure in a format that can be used by another application, such as the standard graphics file formats TIFF or EPS, perform these steps: 1 Select Export from the figure window File menu. The Export dialog box appears. 2 Select the format from the list of formats in the Save as type: menu. This selects the standard filename extension given to files of that type. 3 Enter the name you want to give the file. 4 Click Save. Copying a Figure to the Clipboard On Windows systems, you can also copy a figure to the clipboard and then paste it into another application: 1 Select Copy Options from the Figure window Edit menu. The Copying Options page of the Preferences dialog box appears. 2 Complete the fields on the Copying Options page and click OK. 3 Select Copy Figure from the Edit menu. The figure is copied to the Windows clipboard. You can then paste the figure from the Windows clipboard into a file in another application. Printing Figures Before printing a figure: 1 Select Page Setup from the figure window File menu to set printing options. The Page Setup dialog box opens
Saving your Work 2 Make changes in the dialog box. If you want the printed output to exactly match the annotated plot you see on the screen: a On the axes and Figure tab, click Keep screen limits and ticks b On the Size and Position tab, click Use screen size, centered on page For more information about other options for page setup click the Help To print a figure, select Print from the figure window File menu and complete the print dialog box that appears You can also use the print command l-11
Saving Your Work 1-11 2 Make changes in the dialog box. If you want the printed output to exactly match the annotated plot you see on the screen: a On the Axes and Figure tab, click Keep screen limits and ticks. b On the Size and Position tab, click Use screen size, centered on page. For more information about other options for page setup, click the Help button in the dialog box. To print a figure, select Print from the figure window File menu and complete the Print dialog box that appears. You can also use the print command