|
|
|
|
SynopsisMoves the line to a new location. Syntaxmove_line( [ChipsId,] xval, yval [,mode]); Description
The move_line command moves the line to a new position. The new location may be specified as an absolute position (default) or as relative offsets from the original location. When the "mode" parameter is set to absolute (0), (xval,yval) will be the origin of moved line. The origin of a line is the first point specified when creating the line. The following coordinate systems may be used to move a line: PIXEL, WINDOW_NORM, FRAME_NORM, PLOT_NORM, or DATA. The system is specified by setting the coord_sys field of the optional ChipsId structure which may be passed into the move_line routine. If a ChipsId is not provided, the default coordinate system of the line is used. When a line is moved, it remains in its original coordinate system regardless of what coordinate system was used for the move. The move command translates the specified values to the coordinate system that the line is in before applying them to the line. This means that lines that are originally placed in normalized coordinates and get relocated using data coordinates will not be clipped if they land outside the visible data range. Conversely, lines in data coordinates which are moved using normalized coordinates to beyond the plot area will be clipped. This command is equivalent to calling the move command with 'chips_line' specified as the object. Example 1chips> move_line(.5,.5); Move the current line to the center of the frame in frame normalized coordinates. Example 2chips> id=ChipsId; chips> id.coord_sys=PIXEL; chips> move_line(id,-20,0,1); For a line specified in data coordinates, adjust the position by 20 pixels to the left in the x direction. Do not move it in the y direction. Example 3chips> id=ChipsId; chips> id.coord_sys=DATA; chips> id.line="all"; chips> move_line(id,40,10,1); Shift all lines by the same distance in data coordinates. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. See Also
|
![]() |
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. |