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

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


AHELP for CIAO 4.6 ChIPS v1

delete_axis

Context: axes

Synopsis

Delete the specified axis.

Syntax

delete_axis()
delete_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 deleted, otherwise the argument determines what to delete.

Example 1

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

Create a curve. Delete the curve, then delete the axes.

Example 2

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("plot1")
chips> delete_curve()
chips> id = ChipsId()
chips> id.axis = "ax1"
chips> delete_axis(id)

Two plots are created, each containing a curve, then the first plot is set as current. The id.axis command sets the axis value of the ChipsId structure to the x-axis of the first plot. The curve is deleted, then the axis is deleted.

Example 3

chips> id = ChipsId()
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> delete_curve("all")
chips> delete_axis("all")

Two plots are created and both made current. The curves are deleted, then the delete_axis command deletes all the axes.

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, display_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

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.