|
|
|
|
SynopsisCreates a horizontal line. Syntaxadd_hline( [ChipsId,] y [,attributes]) Description
The add_hline command creates a horizontal line at the specified y location. The location of the line can be specified in data, pixel, frame, or plot normalized coordinates. The line extends infinitely along the horizontal. It is clipped appropriately by its coordinate system (e.g. lines in data coordinates or plot normalized will be clipped at plot boundaries). This command is the same as creating a horizontal line segment with add_line ("ahelp py.chips add_line") and setting the "extend" property so that it extends both ends of the line; see the Line Extend section of "ahelp py.chips chipsopt" . Customizing the LineThere are several attributes that control the line characteristics. The attributes can be set to the ChIPS defaults, values provided in the add_hline command, or values from the user's preference file. The attributes may also be modified with the set_line command at any time; see "ahelp py.chips set_line" and "ahelp py.chips setget" for more information. The attributes associated with lines are:
Example 2chips> settings = ChipsLine() chips> settings.color = 'blue' chips> settings.thickness = 8.0 chips> settings.stem = 'MyLine' chips> add_axis (XY_AXIS, 0, 0, 200) chips> add_hline(100,settings) Populate the "settings" structure with the attribute values, then add a horizontal line that passes through the point 100 on the y-axis. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. |
![]() |
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. |