|
|
|
|
SynopsisSet the specified axis as current. Syntaxcurrent_axis( ChipsId ) current_axis( "axis_id" ) current_axis( "all" ) DescriptionThe current_axis command sets the axis indicated by the argument as the current axis; 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 1
chips> id = ChipsId()
chips> add_plot(.6, .6, .9, .9)
chips> add_curve([-4,0,4],[0,5,10])
chips> add_plot()
chips>
add_curve(numpy.arange(-4,4),numpy.arange(-4,4)*numpy.arange(-4,4))
chips> current_plot("plot1")
chips> id.axis = "ay1"
chips> current_axis(id)
chips> print(info_current())Two plots are created, each containing a curve, then the first plot is set as current. The id.axis command sets the axis value of the ChipsId structure to the y-axis of the first plot, then the current_axis command makes that axis 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> id = ChipsId()
chips> add_plot(.6, .6, .9, .9)
chips> add_curve([-4,0,4],[0,5,10])
chips> add_plot()
chips>
add_curve(numpy.arange(-4,4),numpy.arange(-4,4)*numpy.arange(-4,4))
chips> current_plot("plot1")
chips> current_axis("all")Two plots are created, each containing a curve, then the first plot is set as current. The current_axis command then sets all axes in that plot as current. Example 3
chips> id = ChipsId()
chips> add_plot(.6, .6, .9, .9)
chips> add_curve([-4,0,4],[0,5,10])
chips> add_plot()
chips>
add_curve(numpy.arange(-4,4),numpy.arange(-4,4)*numpy.arange(-4,4))
chips> current_plot("all")
chips> current_axis("all")Two plots are created, each containing a curve, then all plots are made current. The current_axis command then sets all axes in all plots as current. 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. |