Synopsis
Hide the specified curve.
Syntax
hide_curve() hide_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 hidden, otherwise the argument determines what to hide. Note that this does not delete anything; use the display_curve command to make the items visible again.
Examples
Example 1
chips> add_curve([-23,4,15], [10,8,11]) chips> hide_curve()
Create a curve, then hide it.
Example 2
chips> add_curve([-4,0,4], [0,5,10], "id=diag") chips> x = np.arange(-4, 4) chips> add_curve(x, x**2, "id=parabola") chips> hide_curve("diag")
In order to hide the first curve, we need to specify the name of the curve in the hide_curve() call, since the 'parabola' curve is current. This can be done as above, by using just the name, or by using a ChipsId structure:
chips> id = ChipsId() chips> id.curve = "diag" chips> hide_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")
Two curves are created, then the hide_curve command hides 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
- curves
- add_curve, current_curve, delete_curve, display_curve, get_curve, set_curve, shuffle_curve