Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/chips/ahelp/current_histogram.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 ChIPS v1

current_histogram

Context: histograms

Synopsis

Set the specified histogram as current.

Syntax

current_histogram(id)

Description

The function arguments.

Argument Description
id A ChipsId structure identifying the item, or a string containing the name of the object.

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

Use the info_current command to retrieve a list of all the current items in the ChIPS session, as shown below.


Examples

Example 1

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> current_histogram(id)
chips> info_current()

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, then the current_histogram command makes that histogram current.

The output of info_current for this session is:

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

Example 2

chips> add_histogram([5,8,13], [10, 15, 20], [12, 17, 22],
"id=Histogram1")
chips> add_histogram([1,2,3], [10, 15, 20],["dropline", "off"])
chips> current_histogram("Histogram1")

Two histograms are created. After the second histogram is created, it is current. The current_histogram command then sets the first histogram as the current histogram.

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

Two histograms are created. After the second histogram is created, it is current. The current_histogram command then makes all histograms current.


Bugs

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

See Also

concepts
chipsid, currency
histograms
add_histogram, delete_histogram, display_histogram, get_histogram, hide_histogram, set_histogram, shuffle_histogram
utilities
load_fill