| AHELP for CIAO 4.5 ChIPS v1 | hide_label |
Context: labels |
Synopsis
Hide the specified label.
Syntax
hide_label() hide_label( [ChipsId] ) hide_label( "label_id" ) hide_label( "all" )
Description
Depending on the argument, this command hides the current label, the label indicated in a ChipsId structure or by the label_id, or all labels.
- (no argument) - the current label is hidden.
- ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
- label_id - identification tag given to each object that is created; use this to hide a specific label.
- all - hides all labels.
The label is not deleted, just hidden. The display_label command makes it visible again.
Example 1
chips> add_label(.4,.5,"area={\\pi}r^2")
chips> hide_label()Create a label, then hide the current label.
Example 2
chips> id = ChipsId() chips> add_label(.35,.9,"The top of the frame.", "id=top") chips> add_label(.35,.1,"The bottom of the frame.","id=bot") chips> id.label = "top" chips> hide_label(id)
Two labels are created; the second label is current after it is created. The id.label command sets the label value of the ChipsId structure to the first label. That label is then hidden.
Example 3
chips> add_label(.35,.9,"The top of the frame.", "id=top")
chips> add_label(.35,.1,"The bottom of the frame.","id=bot")
chips> hide_label("all")Two labels are created, then the hide_label command hides them both.
Bugs
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.
See Also
- concepts
- chipsid, currency
- labels
- add_label, current_label, delete_label, display_label, get_label, move_label, set_label, shuffle_label
- utilities
- load_font

![[ChIPS Logo]](../imgs/chips_logo_navbar.gif)