|
|
|
|
SynopsisSet the specified curve as current. Syntaxcurrent_curve( ChipsId ) current_curve( "curve_id" ) current_curve( "all" ) DescriptionThe current_curve command sets the curve indicated by the argument as the current curve; see "ahelp py.chips currency" for general information on currency.
Use the info_current command to retrieve a list of all the current items in the ChIPS session, as shown in Example 1. Example 1chips> id = ChipsId() chips> add_curve([-4,0,4],[0,5,10]) chips> add_curve(numpy.arange(-4,4),numpy.arange(-4,4)*numpy.arange(-4,4),"id=p arabola") chips> id.curve = "crv1" chips> current_curve(id) chips> print(info_current()) Two curves are created; the second curve is current after it is created. The id.curve command sets the curve value of the ChipsId structure to the first curve, which has the id "crv1" by default. The current_curve command makes that curve current. The output of info_current for this session is:
Window [win1]
Frame [frm1]
Plot [plot1]
X Axis [ax1]
Y Axis [ay1]
Curve [crv1]
Coord Sys [Data]
Coord Sys ID [plot1_ax1ay1]
Example 2
chips> add_curve([-4,0,4],[0,5,10], "id=diag")
chips>
add_curve(numpy.arange(-4,4),numpy.arange(-4,4)*numpy.arange(-4,4),"id=p
arabola")
chips> current_curve("diag")Two curves are created. After the second curve is created, it is current. The current_curve command then sets the first curve as the current curve. Example 3
chips> add_curve([-23,4,15],[10,8,11])
chips> add_curve([-4,0,4],[0,5,10])
chips> current_curve("all")Two curves are created. After the second curve is created, it is current. The current_curve command then makes all curves current. 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. |