About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/chips4.0/clear_plot.py.html
AHELP for ChIPS 4.0 clear_plot Context: py.chips

Synopsis

Delete the contents of the plotting area.

Syntax

clear_plot([id])

Description

  • id - an optional ChipsId structure containing values to modify the currency state for the command or a string id to specify the plot.

The clear_plot command deletes all contents of the specified plot(s) - axes, curves, contours, histograms, and plot titles. The border axes which define the edge of the plot area are not removed.

Example 1

chips> add_curve(range (10), range (10))
chips> add_histogram([1,2,3], [4,5,6], 'id="my hist"')
chips> add_label(1,8, 'Curve and Histogram')
chips> add_label(.1,.9, 'New Curve')
chips> clear_plot()

Create a number of objects, then clear the plot area.

Example 2

chips> split(3,3,.1,.1)
chips> current_plot('all')
chips> add_contour([1,4,5,2],2,2)
chips> clear_plot('plot5')

Create a 3 by 3 grid of plot areas and add the contour to all of them. The center plot area ("plot5") is cleared by the clear_plot command.

Last modified: December 2007



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-2004. All rights reserved.