Graphics |
Default Color Scheme
The default figure color scheme produces good contrast and visibility for the various graphics functions. This scheme defines colors for the window background, the axis background, the axis lines and labels, the colors of the lines used for plotting and surface edges, and other properties that affect appearance.
The colordef
function enables you to select from predefined color schemes and to modify colors individually. colordef
predefines three color schemes:
colordef white
- sets the axis background color to white, the window background color to gray, the colormap to jet
, surface edge colors to black, and defines appropriate values for the plotting color order and other properties.
colordef black
- sets the axis background color to black, the window background color to dark gray, the colormap to jet
, surface edge colors to black, and defines appropriate values for the plotting color order and other properties.
colordef none
- set the colors to match that of MATLAB 4. This is basically a black background with white axis lines and no grid. MATLAB programs that are based on the MATLAB 4 color scheme may need to call colordef
with the none
option to produce the expected results.
You can examine the colordef.m
M-file to determine what properties it sets (enter type colordef
at the MATLAB prompt).
Specifying the Target Axes | Creating Specialized Plots |