Changing Background Colors
By default, MATLAB figures display on screen as colored lines and surfaces on a white background. When you print a figure on a color device, the colors remain unchanged. If you print to a black and white device, surface colors are dithered to render them as shades of gray, except for lines and text, which are changed to black because these objects are too thin to be dithered effectively.
If you want MATLAB to dither lines, use a color driver rather than a black and white driver. For example, if you are printing on a black and white PostScript printer, you could use the -dpsc option. Note, however, that you may not be able to distinguish between different colored lines on the basis of the dithering.
If you prefer, you can display figures on screen as colored lines and surfaces on a black background, by typing:
colordef black
When you print a figure with a black background, MATLAB inverts the colors for printing: anything black (including the background) is changed to white, and anything white (such as lines, surfaces, or text) is changed to black. These changes are made so the printer will use less toner and produce better looking output.
If you do not want MATLAB to invert the colors when you print the figure, set the figure's InvertHardCopy property to off. For example:
set(gcf,'InvertHardCopy','off')
Note that MATLAB does not invert image or uicontrol objects when you print them, regardless of the value of InvertHardCopy.
[ Previous | Help Desk | Next ]