Main Content

Set Background Colors for Map Displays

If you prefer that your maps have white backgrounds instead, you can create figures with the command

figure('Color','white')

If you want a custom background color, specify a color triplet in place of white. For example, to make a beige background, type

figure('Color',[.95 .9 .8])

To give a white background to an existing figure, type

set(gca,'color','white')

If you want all figures in a session to have white backgrounds, set this as a default with the command

set(0, 'DefaultFigureColor', 'white');

To avoid having to do this every time you start MATLAB®, place this command in your startup.m file.

You can also use the Property Editor, part of the MATLAB plotting tools, to modify background colors for figures and axes.