|
|
|
|
SynopsisModifies the attributes of an existing line. Syntaxset_line([id,] values); Description
The set_line command sets the specified attributes to the provided values. The modified line becomes current. Multiple lines may be modified with a single command by setting the currency to "all". Customizing the LineThere are several attributes that control the characteristics of lines. The set_line command may be used to modify the attribute values of an existing line 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 line will not be modified. The attributes associated with lines are:
These individual commands are also available for setting attribute values: set_line_color set_line_depth set_line_extend set_line_style set_line_thickness Example 1
chips> set_line({"color","plum", "style", "dot"});Using attribute/value pairs, set the line color to plum and the stipple pattern to dot. Example 2
chips> settings = ChipsLine;
chips> settings.color = "blue";
chips> settings.thickness = 2;
chips> set_line("line1",settings);Populate the "settings" structure with attribute values, then use it to set line1 to be blue with a thickness of 2. Example 3
chips>a =struct {color, depth};
chips>a.color="lime",a.depth=50;
chips>set_line(a);Create a user-defined structure with color and depth fields. Use the structure to modify the values of the current line. 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. |