Image Processing Toolbox User's Guide Previous page   Next Page

Controlling the Appearance of the Figure

By default, when imshow displays an image in a figure, it surrounds the image with a gray border and does not include a visible axes box. If you want to display an image without the gray border or include a visible axes box with tick labels, you must set toolbox preferences. (For more information about setting toolbox preferences, see Setting Toolbox Display Preferences.)

For example, to display an image without a border, set the ImshowBorder preference to 'tight'. By default, this preference is set to 'loose', which causes the border to be included. This code sets the preference to suppress the border and then displays an image.

The following figure shows the same image displayed with and without the border. Note that the image is the same size but the figure window takes up less space on your screen.

Image Displayed With and Without a Border

Previous page  Specifying the Initial Image Magnification Using the Image Tool to Explore Images Next page

© 1994-2005 The MathWorks, Inc.