|
|
|
|
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 py.chips set_region" and "ahelp py.chips setget" for more information. The attributes associated with regions are:
Example 2chips> settings = ChipsRegion() chips> settings.fill.color = 'cyan' chips> settings.fill.visible = 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. 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. |