About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/chips4.0/set_frame.sl.html
AHELP for ChIPS 4.0 set_frame Context: sl.chips

Synopsis

Modifies the attributes of an existing frame.

Syntax

set_frame([id,] values);

Description

  • id - an optional ChipsId structure containing values to modify the currency state for the command or a string id to modify the specified frame.
  • values - a list containing attribute value pairs or a ChipsFrame object.

The set_frame command sets the specified attributes to the provided values. The modified frame becomes current. Multiple frames may be modified with a single command by setting the currency to "all".

Customizing the Frame

There are several attributes that control the characteristics of frames. The set_frame command may be used to modify the attribute values of an existing frame at any time during a ChIPS session. See "ahelp sl.chips attributes" and "ahelp sl.chips setget" for more general information.

If multiple attributes are being set simultaneously and one of them fails, the entire command will fail and the frame will not be modified.

The attributes associated with frames are:

Attribute Description Options Default
bgcolor Background color of the frame see the Color section of "ahelp sl.chips chipsopt" default
border.color Color of the frame border see the Color section of "ahelp sl.chips chipsopt" default
border.visible Boolean flag indicating if the frame border should be visible see the Booleans section of "ahelp sl.chips chipsopt" false
scale Boolean flag indicating whether labels should scale if frame changes size see the Booleans section of "ahelp sl.chips chipsopt" true
transparency Boolean flag indicating whether any object behind the frame is visible see the Booleans section of "ahelp sl.chips chipsopt" false

These individual commands are also available for setting attribute values:

set_frame_bgcolor
set_frame_border_color
set_frame_scale
set_frame_transparency

Frame Mode

The frame mode is not controlled by an attribute of the set_plot command. It is specified with set_framemode command.

If the frame mode is "placed", then the frame is located at the specified coordinates within the window. If the frame mode is "single", the frame takes up the entire window. If the mode is changed to "placed", the frame is then displayed at the specified coordinates.

set_framemode([id,] mode);

chips> set_framemode("placed");
      

Example 1

chips> set_frame({"bgcolor","navy"});

Using attribute/value pairs, set the frame background color to navy.

Example 2

chips> settings = ChipsFrame;
chips> settings.border.color = "blue";
chips> settings.border.visible = 1;
chips> set_frame("frame1",settings);

Populate the "settings" structure with attribute values, then use it to set frame1 to have a blue border

Example 3

chips>a =struct {bgcolor, transparency};
chips>a.bgcolor="lime",a.transparency=0;
chips>set_frame(a);

Create a user-defined structure with bgcolor and transparency fields. Use the structure to modify the values of the current frame.

Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

Last modified: December 2007



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-2004. All rights reserved.