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

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


AHELP for CIAO 4.5 ChIPS v1

delete_colorbar

Context: images

Synopsis

Delete the specified colorbar.

Syntax

delete_colorbar()
delete_colorbar(ChipsId)
delete_colorbar(colorbar_id)
delete_colorbar("all")

Description

Depending on the argument, the delete_colorbar command deletes the current colorbar, the colorbar indicated in a ChipsId structure or by the colorbar_id, or all colorbars.

  • (no argument) - the current colorbar is deleted.
  • ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
  • colorbar_id - name given to each object that is created; use this to delete a specific colorbar.
  • all - deletes all colorbars.

Example 1

chips> add_colorbar(0, 0.5, ["orientation", "vertical"])
chips> delete_colorbar()

Create a colorbar, then delete it.

Example 2

chips> add_colorbar(0, 0.5, "id=vert orientation=vertical")
chips> add_colorbar(.5, -.05)
chips> delete_colorbar("vert")

Two colorbars are created; the second colorbar is current after it is created. The first colorbar is deleted by using its name. The following can also be used to delete a specific colorbar (the advantage for the following is that the window, frame or plot can also be changed in the ChipsId structure):

chips> id = ChipsId()
chips> id.colorbar = "vert"
chips> delete_colorbar(id)

Bugs

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

See Also

concepts
chipsid, currency
images
add_colorbar, current_colorbar, display_colorbar, get_colorbar, hide_colorbar, move_colorbar, set_colorbar, shuffle_colorbar

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.