|MATLAB Function Reference|
Set default property values to display different color schemes
colordef enables you to select either a white or black background for graphics display. It sets axis lines and labels to show up against the background color.
sets the axis background color to white, the axis lines and labels to black, and the figure background color to light gray.
sets the axis background color to black, the axis lines and labels to white, and the figure background color to dark gray.
sets the figure coloring to that used by MATLAB Version 4 (essentially a black background).
sets the color scheme of the figure identified by the handle
fig to the color option
h = colordef('new',color_option)
returns the handle to a new figure created with the specified color options (i.e.,
colordef affects only subsequently drawn figures, not those currently on the display. This is because
colordef works by setting default property values (on the root or figure level). You can list the currently set default values on the root level with the statement
You can remove all default values using the
reset references pages for more information.
Color Operations for related functions
© 1994-2005 The MathWorks, Inc.