Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: December 2012

URL: http://cxc.harvard.edu/chips/current_contour.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.5 ChIPS v1

current_contour

Context: contours

Synopsis

Set the specified contour as current.

Syntax

current_contour( ChipsId )
current_contour( "contour_id" )
current_contour( "all" )

Description

The current_contour command sets the contour indicated by the argument as the current contour; see "ahelp currency" for general information on currency.

  • ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
  • contour_id - identification tag given to each object that is created; use this to select a specific contour.
  • all - sets all contours 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_contour([[1,1,1], [1,3,1], [1,1,1]], 3,3,
[1.1,1.5,2,2.5],'id=levels')
chips> add_contour([1,2,5,3,3,6,0,0,1],3,3)
chips> id.contour = "levels"
chips> hide_contour(id)
chips> current_contour(id)
chips> info_current()

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

The output of info_current for this session is:

Window [win1]
  Frame [frm1]
    Plot [plot1]
        X Axis [ax1]
        Y Axis [ay1]
        Contour [levels]
   Coord Sys [Data]
   Coord Sys ID [plot1_ax1ay1]

Example 2

chips> add_contour([[1,1,1], [1,3,1], [1,1,1]], 3,3,
[1.1,1.5,2,2.5],'id=levels')
chips> add_contour([1,2,5,3,3,6,0,0,1],3,3)
chips> current_contour("levels")

Two contours are created. After the second contour is created, it is current. The current_contour command then sets the first contour as the current contour.

Example 3

chips> add_contour([[1,1,1], [1,3,1], [1,1,1]], 3,3,
[1.1,1.5,2,2.5],'color=lime style=solid')
chips> add_contour([1,2,5,3,3,6,0,0,1],3,3)
chips> current_contour("all")

Two contours are created. After the second contour is created, it is current. The current_contour command then makes all contours current.

Bugs

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

See Also

concepts
chipsid, currency
contours
add_contour, apply_contour_transform, apply_contour_transform_inverse, delete_contour, display_contour, get_contour, get_contour_transform, hide_contour, set_contour, set_contour_transform, shuffle_contour

Last modified: December 2012
CXC logo

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-2012. All rights reserved.