Graphics Previous page   Next Page

Producing Uncropped Figures

In most cases, MATLAB crops the background tightly around the objects in the figure. Depending on the printer driver or file format you use, you might be able to produce uncropped output. An uncropped figure has increased background area and is often desirable for figures that contain UI controls.

The setting you make in MATLAB changes the PostScript BoundingBox property saved with the figure.

Using the Graphical User Interface on UNIX

You can only make the uncropped setting on a per figure basis:

  1. Select Print from the figure window's File menu.
  2. From the UNIX Print dialog box, click Options. This opens the Printing Options dialog box.
  3. Select Use loose bounding box for PS and Ghostscript drivers.
  4. Click OK.

Using MATLAB Commands

Use the -loose option with the print function. For Windows, the uncropped option is only available if you print to a file.

This example exports the current figure, uncropped, to an EPS file.


Previous page  Excluding User Interface Controls Choosing a Graphics Format Next page

© 1994-2005 The MathWorks, Inc.