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

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


AHELP for CIAO 4.5 ChIPS v1

delete_contour

Context: contours

Synopsis

Delete the specified contour.

Syntax

delete_contour()
delete_contour( [ChipsId] )
delete_contour( "contour_id" )
delete_contour( "all" )

Description

Depending on the argument, the delete_contour command deletes the current contour, the contour indicated in a ChipsId structure or by the contour_id, or all contours.

  • (no argument) - the current contour is deleted.
  • 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 delete a specific contour.
  • all - deletes all contours.

Example 1

chips> add_contour([[1,1,1], [1,3,1], [1,1,1]], 3,3)
chips> delete_contour()

Create a contour, then delete it.

Example 2

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> delete_contour(id)

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. That contour is then deleted.

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> delete_contour("all")

Two contours are created, then the delete_contour command deletes them both.

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, current_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.