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

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


AHELP for CIAO 4.6 ChIPS v1

display_curve

Context: curves

Synopsis

Display the specified curve.

Syntax

display_curve()
display_curve(id)

Description

The function arguments.

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

If no argument is given then the current curve is shown, otherwise the argument determines what to show.

Example 1

chips> add_curve([-23,4,15],[10,8,11])
chips> hide_curve()
chips> display_curve()

Create a curve and hide it, then display the current curve.

Example 2

chips> add_curve([-4,0,4],[0,5,10], "id=diag")
chips> hide_curve("diag")
chips> x = np.arange(-4,4)
chips> add_curve(x, x**2, "id=parabola")
chips> display_curve("diag")

As the curve named 'parabola' is current, we have to specify a name to the display_curve() call to switch the first curve. This can be done using just the name, as above, or using a ChipsId structure as shown below:

chips> id = ChipsId()
chips> id.curve = "diag"
chips> display_curve(id)

Example 3

chips> add_curve([-4,0,4],[0,5,10])
chips> x = np.arange(-4,4)
chips> add_curve(x, x**2)
chips> hide_curve("all")
chips> display_curve("all")

Two curves are created and hidden, then the display_curve command displays them both.

Bugs

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

See Also

chips
make_figure
concepts
chipsid, currency, depthcontrol
curves
add_curve, current_curve, delete_curve, get_curve, hide_curve, set_curve, shuffle_curve
depth
collapse_depths, display_depth, get_default_depth, hide_depth, reindex_depth, set_default_depth

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

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-2014. All rights reserved.