|
|
|
|
SynopsisCreates a region. Syntaxadd_region( [ChipsId,] sides, xx, yy, radius [,attributes]) add_region( [ChipsId,] xvals, yvals, [,attributes]) Description
The add_region command creates a region whose attributes are specified by user preferences or in an attribute list. The new region becomes current by default; providing a ChipsId overrides the currency state. ClippingRegions displayed in data coordinates are clipped at the plot boundaries. Customizing the RegionThere are several attributes that control the region characteristics. The attributes can be set to the ChIPS defaults, values provided in the add_region command, or values from the user's preference file. The attributes may also be modified with the set_region command at any time; see "ahelp set_region" and "ahelp setget" for more information. The attributes associated with regions are:
Example 2chips> settings = ChipsRegion() chips> settings.fill.color = 'cyan' chips> settings.fill.style = 1 chips> settings.edge.color= 'beige' chips> add_region([40,70,70],[10,70,10],settings) Populate the "settings" structure with the attribute values, then add a triangle with vertices at (40,10), (70,70), and (70,10) Example 3chips> add_region([.1,.5,.9],[.9,.2,.7],['edge.color', 'red', 'edge.style', 'shortdash']) Create region with a red, dashed edge, 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. Pattern fill optionsThe attribute "fill.style" replaces the "fill.visible" attribute. There are multiple fill styles available, instead of a boolean filled/not filled. A value of 0 (chips_nofill) is equivalent to fill.visible=0; a value of 1 (chips_solidfill) is equivalent to fill.visible=1 . Default color not changing for printingThe histogram and region fill colors when set to default were not being changed from a display foreground color to a postscript foreground color. 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. |