Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Biblioteca de Gráficos > Color management > colordef

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.

color_scheme 'white' 'black' 'none'
fig.color_map jetcolormap(64)jetcolormap(64)hsvcolormap(64)
fig.backgroundlight gray dark gray dark gray
axes.backgroundwhite black black
axes.foregroundblack 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("white")
plot()
colordef("default")
plot()

See also

  • sdf — Ajusta figura padrão
  • gdf — Retorna o manipulador da figura corrente
  • sda — Ajusta eixos padrões
  • gda — Retorna o manipulador dos eixos padrões.
  • figure_properties — description of the graphics figure entity properties
  • axes_properties — descrição das propriedades de entidades Axes (de eixos)

History

VersionDescription
6.0.1 "default" color_scheme introduced.
Report an issue
<< colorbar Color management colormap >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:58:38 CET 2018