When you set the axes
0 1 1] so that it fills the entire figure, the aspect ratio
is not preserved when you print because MATLAB® printing software
adjusts the figure size when printing according to the figure's
To preserve the image aspect ratio when printing, set the figure's
the command line.
PaperPositionMode is set to
the width and height of the printed figure are determined by the figure's
dimensions on the screen, and the figure position is adjusted to center
the figure on the page. If you want the default value of
'auto', enter this line in your
Printed images may not always be the same size as they are on your monitor. The size depends on accurately specifying the numbers of pixels per inch that you monitor is displaying.
To specify the pixels-per-inch on your display, do the following (in Microsoft® Windows®):
Go into your Display Properties by right-clicking on an empty space on your desktop and choose Properties.
Click the Settings pane.
Click the Advanced button and choose the General pane.
Switch DPI setting to Custom setting and hold a real ruler up to the picture of the ruler on the screen and drag until they match.
Until you do this, neither Windows software nor any other can determine how big images on the screen are, and printed images cannot match the size.
On the Macintosh platform, pixels per inch is hard-coded to 72.