Last modified: December 2013

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


AHELP for CIAO 4.11 ChIPS v1

display_axis

Context: axes

Synopsis

Display the specified axis.

Syntax

display_axis()
display_axis(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 axes are shown, otherwise the argument determines what to show.


Examples

Example 1

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

Create a curve and hide the axis (or axes), then display the current axis.

Example 2

chips> add_plot(.6, .6, .87, .87)
chips> add_curve([-4,0,4],[0,5,10])
chips> hide_axis()
chips> add_plot()
chips> x = np.arange(-4,4)
chips> add_curve(x, x**2)
chips> current_plot("plot1")
chips> display_axis("ay1")

Two plots are created, each containing a curve, and the axes of the first plot are hidden. After creating the second plot, we change back to the first plot and re-show the Y axis ("ay1"). We could have used a ChipsId structure for this by saying:

chips> id = ChipsId()
chips> id.axis = "ay1"
chips> display_axis(id)

Example 3

chips> add_plot(.6, .6, .9, .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")
chips> display_axis("all")

Two plots are created and both made current. The axes are all hidden, then the display_axis command displays them all.


Bugs

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

See Also

axes
add_axis, bind_axes, current_axis, delete_axis, display_major_ticks, display_minor_ticks, get_axis, get_xaxis, get_yaxis, hide_axis, 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
concepts
chipsid, currency, depthcontrol
depth
collapse_depths, display_depth, get_default_depth, hide_depth, reindex_depth, set_default_depth