Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: December 2012

URL: http://cxc.harvard.edu/chips/set_preference.html
Jump to: Description · Examples · Bugs · See Also


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

Last modified: December 2012
CXC logo

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2012. All rights reserved.