Desktop Tools and Development Environment |
Controlling Graphic Output for Notebook
This section describes how to control several aspects of the graphic output produced by MATLAB commands in an M-book, including
Embedding Graphic Output in the M-Book
By default, graphic output is embedded in an M-book. To display graphic output in a separate figure window,
Note
Embedded figures do not include Handle Graphics objects generated by the uicontrol and uimenu functions.
|
Notebook determines whether to embed a figure in the M-book by examining the value of the figure object's Visible
property. If the value of the property is off
, Notebook embeds the figure. If the value of this property is on
, all graphic output is directed to the current figure window.
Suppressing Graphic Output for Individual Input Cells in Notebook
If an input or autoinit cell generates figure output that you want to suppress,
Notebook suppresses graphic output from the cell, inserting the string (no graph)
after the input cell.
To allow graphic output for a cell, repeat the procedure. Notebook removes the (no graph)
marker and allows graphic output from the cell.
Note Toggle Graph Output for Cell overrides the Embed Figures in M-book option, if that option is set. |
Sizing Graphic Output in Notebook
To set the default size of embedded graphics in an M-book,
Note Changes you make using the Notebook Options dialog box take effect for graphic output generated after you click OK. To affect existing input or output cells, you must reevaluate the cells. |
You change the size of an existing embedded figure by selecting the figure, clicking the left mouse button anywhere in the figure, and dragging the resize handles of the figure. If you resize an embedded figure using its resize handles and then regenerate the figure, its size reverts to its original size.
Cropping Graphic Output in Notebook
To crop an embedded figure to cut off areas you do not want to show,
Adding White Space Around Graphic Output in Notebook
You can add white space around an embedded figure by moving the boundaries of a graphic outward. Select the graphic, then hold down the Shift key and drag a sizing handle away from the graphic.
Controlling Numeric Output Format for Notebook | Configuring Notebook |
© 1994-2005 The MathWorks, Inc.