|
|
|
|
SynopsisCreates a point. Syntaxadd_point( [ChipsId,] xpos, ypos, [,attributes]) Description
The add_point command creates a point whose attributes are specified by user preferences or in an attribute list. The new point becomes current by default; providing a ChipsId overrides the currency state. The user specifies the location of the point as a coordinate pair (xpos and ypos). This position can be specified in data, pixel, frame, or plot normalized coordinates. Points specified in data coordinates will only be displayed if the are within the coordinate system range. Customizing the PointThere are several attributes that control the point characteristics. The attributes can be set to the ChIPS defaults, values provided in the add_point command, or values from the user's preference file. The attributes may also be modified with the set_point command at any time; see "ahelp set_point" and "ahelp setget" for more information. The attributes associated with points are:
Example 2chips> settings = ChipsPoint() chips> settings.color = 'blue' chips> settings.size = 18.0 chips> settings.stem = 'MyPoint' chips> add_point(100,100,settings) Populating the "settings" structure with the attribute values, then adding the point. Example 3chips> add_point(100,100,['color', 'blue', 'style', 'uptriangle', 'size', 12]) Add an upward-pointing triangle point, specifying the attribute values in a list. CHANGES IN CIAO 4.1coordsys keyword added to attributesThe attribute "coordsys" sets the coordinate system when the object is created. ChipsIds still can be used to set coordinate systems. If a ChipsId and coordsys attribute are both provided, the coordsys value takes precedence. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. |
![]() |
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. |