If the \PERCENT qualifier is used, then the values of the coordinates will be interpreted as being in percentages of the current window, for example, (50,50) represents the centre of the current window. This is the default if no units qualifier is used. If the \GRAPH qualifier is used, then the values of the coordinates will be interpreted as being in graph units, that is, the units defined by the minimum and maximum values for a graph. These units are taken from the last graph drawn, or, if no graph has been drawn yet, they are the default values: -1 <= x <= 1 and -1 <= y <= 1. If the \WORLD qualifier is used, then the values of the coordinates will be interpreted as being in centimeters or inches, depending on the units type chosen with the SET UNITS command. The default world units are centimeters.
Syntax: LINE x y { pen_code { line_type { colour { line_thickness }}}} Defaults: pen_code = [3;2;2;...], line_type = [1;1;1;...], colour = [1;1;1;...], line_thickness = [1;1;1;...] Vectors x and y should contain the x and y coordinates for the line segments' end points. Optional vector pen_code should contain the pen codes, either 2 (connect) or 3 (disconnect) for each point. Optional vector line_type should contain the line type codes (between 1 and 10) for the line segments. The line types are described in the SET LINE command section. Optional vector colour should contain the colour codes (between 1 and 8). Optional vector line_thickness should contain the the line thickness for bitmap and PostScript hardcopy output.
Syntax: LINE LINE\XYOUT x y { pen_code { line_type { colour { thickness }}}} Qualifiers: \GRAPH, \PERCENT, \WORLD, \XYOUT, \HV Defaults: \PERCENT, \-XYOUT, \-HV The action that is taken depends on which keyboard key is typed. Q - quit drawing lines. Return to command entry mode. U - start line segment. T - try a line segment. A line segment is drawn from the last location that was chosen with the U or D key to the current location. This line segment will not be entered into the plot file, or into an open EDGR file. If the line segment is acceptable, do not move the crosshair, and type the D key. If the line segment is not acceptable, simply move to another location and try again; this line segment will then be erased. D - end a line segment. A line segment is drawn from the last location that was chosen with the U or D key to the current location. L - change the line type. Note: to choose line type 10, enter A. C - change the colour. H - change the line thickness. X - toggle the display of the x and y coordinates. M - display the menu of commands. / - clear the alphanumeric terminal screen (no affect on the graphics).
Additional Information on:
The pen_code refers to whether the virtual drawing pen is moved in the down position, pen_code = 2, or in the up position, pen_code = 3. pen_code | result ---------+-------------------------------------------------------- 2 | draw line segment from last point to current point 3 | disconnect current point from last point
The line type should be between 1 and 10, and refers to the type of line that will be used. The line types are described in the SET LINE command section. The defaults are: line type 1 is a normal line, line type 2 is a double width line, while line types 3 through 10 are various types of dashed lines.
1 = white 5 = yellow 2 = red 6 = cyan 3 = green 7 = magenta 4 = blue 8 = white
This controls the line thickness for bitmap and PostScript hardcopy output. It has no affect on what is displayed on a monitor screen or on pen plotter hardcopy.