|
|
|
|
SynopsisModifies the attributes of an existing curve. Syntaxset_curve([id,] values) Description
The set_curve command sets the specified attributes to the provided values. The modified curve becomes current. Multiple curves may be modified with a single command by setting the currency to "all". Customizing the CurveThere are several attributes that control the characteristics of curves. The set_curve command may be used to modify the attribute values of an existing curve at any time during a ChIPS session. See "ahelp py.chips attributes" and "ahelp py.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 curve will not be modified. The attributes associated with curves are:
These individual commands are also available for setting attribute values: set_curve_baddatamode set_curve_depth set_curve_errcolor set_curve_errdown set_curve_errleft set_curve_errright set_curve_errstyle set_curve_errthickness set_curve_errup set_curve_limitlength set_curve_limitoverride set_curve_linecolor set_curve_linestyle set_curve_linethickness set_curve_symbolangle set_curve_symbolcolor set_curve_symbolfill set_curve_symbolsize set_curve_symbolstyle Example 1chips> set_curve(['line.color','gold', 'symbol.color','forest']) Using attribute/value pairs, set the curve line color to gold and the symbol color to forest green. Example 2
chips> settings = ChipsCurve()
chips> settings.err.color = 'red'
chips> settings.err.style = "cap"
chips> set_curve('curve1',settings)Populate the "settings" structure with attribute values, then use it to set curve1's error style to capped and the error color to red. Example 3chips> class lnprop: chips> def __init__(self): chips> self.baddata=chips_omit chips> self.depth=50 chips> set_curve(lnprop()) Create a user-defined structure with baddata and depth fields. Use the structure to modify the values of the current curve. 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. |