colordef Set the color look-and-feel of a given or of all forthcoming graphic figures

## Syntax

                colordef(color_scheme)
                colordef(f, color_scheme)
                colordef("new", color_scheme)
                colordef default

## Arguments

color_scheme

  a character string with possible value: `'white'`, `'black'`, `'none'`, or `'default'`.

f

  handle on a graphic figure

## Description

`colordef(color_scheme)` sets the color properties of all forthcoming figures and of their axes. The `color_scheme` and corresponding colors are listed in the table here-below.

Property / L&F | 'white' | 'black' | 'none'
fig.color_map | jet(64) | jet(64) | hsv(64)
fig.background | light gray | dark gray | dark gray
axes.background | white | black | black
axes.foreground | black | white | white
(labels).font_foreground | black | white | white

After having used `colordef(color_scheme)`, it is possible to get back the default default colors with `colordef("default")`.

`colordef(f, color_scheme)` sets the color properties corresponding to the chosen color scheme, but only for the chosen figure with handle `f`. The default colors of forthcoming figures are unchanged (except for "default").

`colordef('new', color_scheme)` creates a new graphic window and sets its color properties according to the chosen `color_scheme`. The default colors of forthcoming figures are unchanged (except for "default").

## Examples

                    colordef("black")
                    plot()
colordef("black") plot() title("colordef(""black"")") gcf().figure_size = [350 400]; |
                    colordef("white")
                    plot()
colordef("white") plot() title("colordef(""white"")") gcf().figure_size = [350 400]; |
                    colordef("default")
                    plot()
colordef("default") plot() title("colordef(""default"")") gcf().figure_size = [350 400];

## See also

- sdf
- gdf
- sda
- gda
- figure_properties
- axes_properties

## History

6.0.1

- "default" color_scheme introduced.
- With "black" and "none" color shemes, titles and axes labels are now drawn in white.