|
|
|
|
SynopsisRetrieves the attribute value(s) of the y-axis. Syntaxget_yaxis(); get_yaxis(id [,attribute]); Description
The get_yaxis command returns a structure containing all the attribute values of the y-axis. To retrieve the value of a specific attribute, provide the attribute name and the id or ChipsId of the object. Some values are set to "None" in the returned structure. These entries generally correspond to attributes which may only be modified at creation time, such as the object id. The attributes associated with axes are:
Example 1
chips> add_axis(Y_AXIS, 20, 0, 100, "color=yellow");
chips> print(get_yaxis());
chips> print(get_yaxis("ay1","color"));An axis is created and becomes current. Calling get_yaxis with no argument returns all the attributes of the object. get_yaxis is called a second time to return just the "color" attribute. Example 2
chips> add_axis(Y_AXIS, 20, 0, 100, "color=yellow");
chips> add_axis(XY_AXIS, 40, 0, 100,"color=magenta");
chips> print(get_yaxis("ay1"));Two axes are created. get_yaxis is called with the id of the first y-axis, returning all attributes. Example 3chips> id=ChipsId(); chips> id.yaxis="ay1"; chips> print(get_yaxis(id)); A ChipsId structure is created and the id.yaxis field is set to "ay1". get_yaxis is called with the ChipsId. Example 4chips> ayatt=get_yaxis; chips> print(ayatt); Retrieve a structure containing the attribute values of the current yaxis and store the results in "ayatt". Print the contents of "ayatt". 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. |