|
|
|
|
SynopsisModifies the attributes of an existing frame. Syntaxset_frame([id,] values); Description
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 FrameThere 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:
These individual commands are also available for setting attribute values: set_frame_bgcolor set_frame_border_color set_frame_scale set_frame_transparency Frame ModeThe 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. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. See Also
|
![]() |
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. |