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

Synopsis

Adds a label along the X-axis of a drawing area and/or changes X-axis label attributes.

Syntax

chips> [D #] XLABEL ["<text>"]

Description

To change X-axis label attributes:

chips> [D #] XLABEL <color>
chips> [D #] XLABEL [SIZE] <size_value>

The XLABEL command can take many arguments:

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: <color>
Description: label color
Options: BLACK, BLUE, CYAN, DEFAULT, GREEN, MAGENTA, RED, WHITE, 
         YELLOW
Default: DEFAULT (appears in ChIPS window as white; prints as black)
Argument: <size_value>
Description: label size
Options: real numbers
Default: 1.0
Argument: <text>
Description: the text for the label, which must be in quotes 
             (" ").  The <text> may contain TeX syntax for 
             formatting text, creating mathematical expressions,
             and mixing font settings.
Options: quoted character string

The FONT command has more information about font options.

Issuing this command with no arguments will delete the current X-axis label.

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> XLABEL "This is the X-axis"

After a curve has been plotted, a label is added to the X-axis.

Example 2

chips> XLABEL " "
chips> XLABEL "\oe This \rm is \gr Greek"

The command XLABEL " " removes the previous X-axis label. The second XLABEL command utilizes TeX syntax in order to achieve mixed font settings in the same plot. The command produces a label where "This" is in Old English font, "is" is in Roman font, and "Greek" is in the Greek font.

Example 3

chips> XLABEL YELLOW
chips> XLABEL SIZE 1.5

An existing label is changed to the color yellow, then increased in size to 1.5.

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.