About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/chips4.0/set_current.py.html
AHELP for ChIPS 4.0 set_current Context: py.chips

Synopsis

Set the specified object as current.

Syntax

set_current(object_type, object_id)

Description

  • object_type - what type of object to modify, such as chips_window or chips_curve; see the Object Type section of "ahelp py.chips chipsopt"
  • object_id - a ChipsId structure indicating which object should be modified

The set_current command sets the object indicated by the argument as the current window; see "ahelp py.chips currency" for general information on currency.

There is also a "set_current" command for each ChIPS object:

set_current_axis
set_current_contour
set_current_curve
set_current_frame
set_current_histogram
set_current_image
set_current_label
set_current_line
set_current_plot
set_current_point
set_current_region
set_current_window

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> add_plot()
chips> add_plot(.2, .2, .7, .7)
chips> set_current(chips_plot,"plot2")

Create two plots; the second one is current by default. Set plot1 to be current.

The output of info_current for this session is:

Window [win1]
  Frame [frm1]
    Plot [plot1]
    Coord Sys [Plot Normalized]

Example 2

chips> set_current(chips_window,"Fig3")

Set the window with the id "Fig3" to be current.

Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

Last modified: December 2007



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.