Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Русский


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.backgroundlight gray dark gray dark gray
axes.backgroundwhite black black
axes.foregroundblack white white
(labels).font_foregroundblackwhite 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 — reSets the properties of the Default Figure to their factory values
  • gdf — Return handle of default figure.
  • sda — reSets the Default Axes to its factory values
  • gda — Return handle of default axes.
  • figure_properties — description of the graphics figure entity properties
  • axes_properties — description of the axes entity properties

History

ВерсияОписание
6.0.1
  • "default" color_scheme introduced.
  • With "black" and "none" color shemes, titles and axes labels are now drawn in white.
Report an issue
<< clf figure_operations drawlater >>

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 Jun 17 17:55:07 CEST 2024