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 2006

URL: http://cxc.harvard.edu/ciao3.4/redraw.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 redraw Context: chips

Synopsis

Redraws the plot or sets the redraw mode

Syntax

chips> REDRAW
chips> REDRAW ON
chips> REDRAW OFF

Description

When ChIPS is started the redraw mode is set to "on". This means that any command that changes the plot display - such as adding or deleting a curve or changing the plot title - will have an immediate effect. There are times when this behaviour is undesireable - such as plots of large datasets or when creating a plot from a script - and so it can be turned off by calling BATCH OFF. It can be restored by BATCH ON.

After the redraw mode is turned off, ChIPS commands will appear to have no affect on the current plot. The REDRAW command on its own will force the plot to be displayed with the current contents, or the ChIPS PRINT command can be used to create a postscript version of the current plot.

The default behaviour for Sherpa is to turn automatic redrawing off. This includes loading the Sherpa module into a S-Lang script.

Example 1

chips> CURVE data/example.dat
chips> REDRAW OFF
chips> SYMBOL UPTRI
chips> SYMBOL BLUE
chips> SYMBOL SIZE 5.0
chips> REDRAW

After the curve is plotted, automatic redrawing is turned off. Therefore, the effect of commands that follow are not displayed until the REDRAW command refreshes the plot.

Example 2

chips> REDRAW ON
chips> SIMPLELINE

Building on the previous example, automatic redrawing is restored. When the SIMPLELINE command is issued, the plot is redrawn with the new curve linestyle.

Bugs

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

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



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.