| AHELP for CIAO 4.5 ChIPS v1 | set_preference |
Context: preference |
Synopsis
Sets the specified preference.
Syntax
set_preference(attribute, value)
Description
- attribute - the attribute name
- value - the value to be assigned to the attribute, as a string
The set_preference command sets the specified preference to the supplied value. The new setting does not affect the attributes of existing objects and data, only new ones created after the call to set_preference.
A complete list of supported preferences is available from "ahelp set_preferences". Use the set_preferences command to change multiple preferences at a time.
Example 1
chips> set_preference("point.color", "red")Set the default point color to red.
Example 2
chips> set_preference("point.fill", "false")By default, points will not be filled.
Example 3
chips> set_preference("axis.*.thickness", "2")Change all the thickness elements of the axis to use a thickness of 2 by default.
Bugs
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.
See Also
- concepts
- preferences, setget
- preference
- get_preference, get_preferences, load_preferences, save_preferences, set_preference_autoload, set_preferences
- utilities
- set_current

![[ChIPS Logo]](../imgs/chips_logo_navbar.gif)