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 2008

URL: http://cxc.harvard.edu/chips4.1/delete_histogram.sl.html
AHELP for ChIPS 4.1

delete_histogram

Context: sl.chips

Synopsis

Delete the specified histogram.

Syntax

delete_histogram();
delete_histogram( [ChipsId] );
delete_histogram( "histogram_id" );
delete_histogram( "all" );

Description

Depending on the argument, the delete_histogram command deletes the current histogram, the histogram indicated in a ChipsId structure or by the histogram_id, or all histograms.

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

Example 1

chips> add_histogram([1,2,3], [10, 15, 20],{"dropline", "off"});
chips> delete_histogram();

Create a histogram, then delete it.

Example 2

chips> id = ChipsId();
chips> add_histogram([5,8,13], [10, 15, 20], [12, 17, 22], "id=basic");
chips> add_histogram([8,10,14], [12, 17, 22], [14, 19, 24], [1,1,2],
{"id", "witherrs", "symbol.style", "diamond", "err.style", "capped"});
chips> id.histogram = "basic";
chips> delete_histogram(id);

Two histograms are created; the second histogram is current after it is created. The id.histogram command sets the histogram value of the ChipsId structure to the first histogram. That histogram is then deleted.

Example 3

chips> add_histogram([5,8,13], [10, 15, 20], [12, 17, 22], "id=basic");
chips> add_histogram([8,10,14], [12, 17, 22], [14, 19, 24], [1,1,2],
{"id", "witherrs", "symbol.style", "diamond", "err.style", "capped"});
chips> delete_histogram("all");

Two histograms are created, then the delete_histogram command deletes them both.

Bugs

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

Last modified: December 2008



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.