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

Jump to: Description · Examples · Bugs · See Also

AHELP for CIAO 4.10 ChIPS v1


Context: axes


Hide the specified axis.




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 aces are hidden, otherwise the argument determines what to hide. Note that this does not delete anything; use the display_axis command to make the items visible again.


Example 1

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

Create a curve, then hide the current axes. Note that the data plotted against these axes (i.e. curve) is still displayed.

Example 2

chips> add_plot(0.6, 0.6, 0.87, 0.87)
chips> add_curve([-4,0,4], [0,5,10])
chips> add_plot()
chips> x = np.arange(-4, 4)
chips> add_curve(x, x**2)
chips> id = ChipsId()
chips> id.plot = "plot1"
chips> id.axis = "ax1"
chips> hide_axis(id)

Two plots are created, each containing a curve, then the X axis of the first plot is hidden. The hide_axis() call could have been written as:

chips> current_plot("plot1")
chips> hide_axis("ax1")

Example 3

chips> add_plot(0.6, 0.6, 0.9, 0.9)
chips> add_curve([-4,0,4], [0,5,10])
chips> add_plot()
chips> x = np.arange(-4, 4)
chips> add_curve(x, x**2)
chips> current_plot("all")
chips> hide_axis("all")

Two plots are created and both made current. The hide_axis command then hides all the axes.


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

See Also

add_axis, bind_axes, current_axis, delete_axis, display_axis, display_major_ticks, display_minor_ticks, get_axis, get_xaxis, get_yaxis, hide_major_ticks, hide_minor_ticks, lin_scale, log_scale, move_axis, reverse_axes, set_arbitrary_tick_positions, set_axis, set_xaxis, set_yaxis, shuffle_axis, unbind_axes
chipsid, currency

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: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.