|
|
|
|
SynopsisModifies the attributes of an existing histogram. Syntaxset_histogram([id,] values); Description
The set_histogram command sets the specified attributes to the provided values. The modified histogram becomes current. Multiple histograms may be modified with a single command by setting the currency to "all". Customizing the HistogramThere are several attributes that control the characteristics of histograms. The set_histogram command may be used to modify the attribute values of an existing histogram at any time during a ChIPS session. See "ahelp sl.chips attributes" and "ahelp sl.chips setget" for more general information. If multiple attributes are being set simultaneously and one of them fails, the entire command will fail and the histogram will not be modified. The attributes associated with histograms are:
These individual commands are also available for setting attribute values: set_histogram_depth set_histogram_dropline set_histogram_errcolor set_histogram_errdown set_histogram_errstyle set_histogram_errthickness set_histogram_errup set_histogram_fill set_histogram_fillcolor set_histogram_fillopacity set_histogram_linecolor set_histogram_linestyle set_histogram_linethickness set_histogram_symbolangle set_histogram_symbolcolor set_histogram_symbolfill set_histogram_symbolsize set_histogram_symbolstyle Example 1
chips> set_histogram({"line.color","cornflower","dropline",1});Using attribute/value pairs, set the histogram line color to cornflower and display droplines. Example 2
chips> settings = ChipsHistogram;
chips> settings.err.color = "red";
chips> settings.symbol.style = chips_cross;
chips> set_histogram("histogram1",settings);Populate the "settings" structure with attribute values, then use it to set histogram1 to have red errors and cross-shaped symbols. Example 3
chips>a =struct {dropline, depth};
chips>a.dropline=1,a.depth=50;
chips>set_histogram(a);Create a user-defined structure with dropline and depth fields. Use the structure to modify the values of the current histogram. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. |
![]() |
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. |