Last: zshift-array Up: ../graph3.html Next: cross-reference
GRAPH3 is a "black-box" utility program for making simple line drawings
of 3-D data. It is a modification of the 2-D program, GRAPH, and
permits identical input (with the exception of the histogram facility),
plus certain extra variables which are relevant for 3-D plotting.
Input to GRAPH3 consists of FORTRAN NAMELIST input, $DATA ... $END,
followed by 5 title cards, as described in the comments below which
have been extracted from the program. Multiple sets of input data may
be provided in a single run. A simple example of a input file follows:
$DATA X(1,1)=1,2,3,4,5,
Y(1,1)=1,4,9,16,25,
X(1,2)=1,2,3,4,5,6,7,8,9,10,
Y(1,2)=1,1.4142,1.7320,2,2.2360,2.4494,2.6457,
2.8284,3,3.1622,
Z(1,1)=1,2,3,4,5,
Z(1,2)=1,2,3,4,5,6,7,8,9,10,
N=5,10,
NU=2*1
$END
Sample Graphs of Y = X**2 (squares) and Y = SQRT(X) (diamonds)
X Values
Y Values
Note that the keyword $DATA **MUST** begin in column 2, and that no
data may ever be coded in column 1. Otherwise the format is free-form.
In this example, two sets of data are provided, one representing the
curve y = x**2, and the second, y = sqrt(x), in both of which x = z.
At present, only one version of GRAPH3 is present on the system:
* GRAF3X - graphs on Printronix 300 line printer
To run GRAPH3, the following command is required:
@GRAF3X infile,outfile,plotfile
or
@GRAF3X
INPUT FILE = infile
OUTPUT FILE = outfile
PLOT FILE = plotfile
If GRAF3X was used, the output listing and plot may be produced on the
Chemistry Printronix 300 line printer by the following command:
@P300
Print file: outfile
Print file: plotfile
Print file: ^Z
or disposed to the Physics Printronix 600 line printer by
@PRINT outfile,plotfile
The file names "infile", "outfile", and "plotfile" must not exceed 10
characters in length (6-character name + 3-character extension). The
three file names input to GRAPH3 may be provided in three successive
lines of a file named GRAF3X.CMD if desired; GRAPH3 will then not
prompt for file names.
The plot file output by GRAF3X should only be printed on the Printronix
300 or 600; with other printers, the result will be 1200 lines of
totally meaningless characters.
GRAPH3 is currently dimensioned for 1600 data points in each of up to 6
curves. Typical execution times are about 5 sec to construct the
graph, plus 0.3 sec to construct the plot file from the in-core bitmap
representation. Comments from subroutine GRFGG3 in GRAPH3 follow.