12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

print, printoptand in this section change the assignment,toThinLineStyles=1ThinLineStyles=0then restart <strong>MATLAB</strong>.Printing <strong>MATLAB</strong> GUIsYou can generally obtain better results when printing a figure window thatcontains <strong>MATLAB</strong> uicontrols by setting these key properties:• Set the figure PaperPositionMode property to auto. This ensures the printedversion is the same size as the onscreen version. With PaperPositionModeset to auto <strong>MATLAB</strong> does not resize the figure to fit the current value of thePaperPosition. This is particularly important if you have specified a figureResizeFcn because if <strong>MATLAB</strong> resizes the figure during the print operation,the ResizeFcn is automatically called.To set PaperPositionMode on the current figure, use the command:set(gcf,'PaperPositionMode','auto')• Set the figure InvertHardcopy property to off. By default, <strong>MATLAB</strong>changes the figure background color of printed output to white, but does notchange the color of uicontrols. If you have set the background color to, forexample, match the gray of the GUI devices, you must set InvertHardcopyto off to preserve the color scheme.To set InvertHardcopy on the current figure, use the command:set(gcf,'InvertHardcopy','off')• Use a color device if you want lines and text that are in color on the screento be written to the output file as colored objects. Black and white devicesconvert colored lines and text to black or white to provide the best contrastwith the background and to aviod dithering.• Use the print command’s −loose option to prevent <strong>MATLAB</strong> from using abounding box that is tightly wrapped around objects contained in the figure.This is important if you have intentionally used space between uicontrols oraxes and the edge of the figure and you want to maintain this appearance inthe printed output.2-374

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!