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/grids.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 grids Context: chips

Synopsis

Adds grid lines to a drawing area and/or changes grid attributes.

Syntax

chips> [D #] GRIDS [<gridtype>] <color>
chips> [D #] GRIDS [<gridtype>] [<coor>] <boolean>
chips> [D #] GRIDS [<gridtype>] <linestyle>

Description

Argument: <boolean>
Description: drawing area grids on or off
Options: {ON | OFF}
Default: ON
Argument: <color>
Description: axes color
Options: BLACK, BLUE, CYAN, DEFAULT, GREEN, MAGENTA, RED, WHITE, YELLOW
Default: DEFAULT (appears in ChIPS window as white; prints as black)
Argument: <coor>
Description: axis coordinates
Options: X, Y  
Default: both X and Y
Argument: D #
Description: drawing area number designation
Options: integer numbers
Default: current drawing area

See the D command for more information about this argument.

Argument: <gridtype>
Description: type of grid markings
Options: MAJ - grid lines along major tick marks
         MIN - grid lines along minor tick marks
Default: both MAJ and MIN
Argument: <linestyle>
Description: style for lines
Options: SOLID, DOT, DASH, LONGDASH, DOTDASH, DOTLONGDASH, 
         DASHLONGDASH
Default: SOLID

CIAO allows some plot attributes to be changed using the ChIPS state object and resource file. See "ahelp chips" for further details.

Example 1

chips> CURVE data/example.dat
chips> GRIDS ON

A curve is plotted, then the grid lines are turned on.

Example 2

chips> GRIDS MAJ Y ON
chips> GRIDS MIN X ON

Grid lines along the major Y-axis tick marks are turned on, while the lines along the minor X-axis tick marks are turned on.

Example 3

chips> GRIDS MAJ BLUE
chips> GRIDS MIN CYAN
chips> GRIDS LONGDASH

The major tick marks are changed to the color blue, and the minor tick marks are changed to the color cyan. Finally, all grid line styles are changed from a solid line to a long dash.

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.