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/current_plot.py.html
AHELP for ChIPS 4.0 current_plot Context: py.chips

Synopsis

Set the specified plot as current.

Syntax

current_plot( ChipsId )
current_plot( "plot_id" )
current_plot( "all" )

Description

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

  • ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
  • plot_id - identification tag given to each object that is created; use this to select a specific plot.
  • all - sets all plots to be current.

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(.1, .5, .5, .9, "id=obs459")
chips> add_plot(.5, .1, .9, .5, "id=obs3456")
chips> id.plot = "obs459"
chips> current_plot(id)
chips> print(info_current())

Two plots are created; the second plot is current after it is created. The id.plot command sets the plot value of the ChipsId structure to the first plot, then the current_plot command makes that plot current.

The output of info_current for this session is:

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

Example 2

chips> add_plot("id=main")
chips> add_plot(.15, .15, .4, .4)
chips> current_plot("main")

Two plots are created. After the second plot is created, it is current. The current_plot command then sets the first plot as the current plot.

Example 3

chips> add_plot("id=main")
chips> add_plot(.6,.6,.8,.8)
chips> current_plot("all")

Two plots are created. After the second plot is created, it is current. The current_plot command then makes all plots 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.