home *** CD-ROM | disk | FTP | other *** search
- NAME
- graph - plot a tabulated function
-
- SYNOPSIS
- graph [file] [options]
-
- DESCRIPTION
- Graph with no options takes pairs of points (two numbers per line) from
- the given file (or standard input) as x- and y- values and plots them
- on the screen, connected by straight lines. A string surrounded by
- quotes "..." may follow a pair of points, and will be displayed
- starting at that point. If an input file is specified, the program
- waits for a keypress, then resets the screen parameters and clears the
- screen before exiting. If the data comes from the standard input, the
- program exits without clearing the screen or resetting it.
-
- On the Z-100, both 225*640 and 400*640 modes are supported. The mode
- is specified by setting the environment variable GRAPHICS before
- running graph:
-
- SET GRAPHICS=1 ; 225*640 mode (the default)
- SET GRAPHICS=2 ; 400*640 mode
-
- Similarly, the following modes are supported on the IBM PC:
-
- SET GRAPHICS=4 ; 200*320 color mode
- SET GRAPHICS=5 ; 200*320 grey scale mode
- SET GRAPHICS=6 ; 200*640 monochrome mode (the default)
-
- The terminology above is IBM's, but note that a color monitor
- connected to the 15 pin connector on the IBM color graphics adaptor
- will display color if the graphics mode is set to either 4 or 5. A
- color monitor connected to the RCA jack will display only a grey
- scale in mode 5.
-
- OPTIONS
-
- -a [<step> [<start>]] Automatically generate abscissas. The first argument,
- if present, is the step between values (default 1). The second
- argument, if present, is the starting value (default 0, or
- first argument from -x switch).
-
- -b break (disconnect) the plot after each label. (See switch -m to make the
- line segments different. To break the plot without printing
- labels, use empty labels: "".)
-
- -c <text> argument is default label for data points
-
- -g <style> argument is grid style: 0 for no grid, 1 for frame with tic marks
- (default), 2 for full grid.
-
- -l <text> next argument is label for graph (printed at top)
-
- -m <n1> <n2> <n3>... numeric arguments are linestyles for successive line
- segments (see switch -b). If an argument is zero, the data
- points are plotted as dots not connected by lines. Otherwise,
- each positive argument is a number of up to three digits WCS,
- where W is the linewidth (0-9, with 0 giving width 1), C is the
- color (with 0 being brightest), and S is linestyle (1-5, 1 for
- solid, 2 for dashed, 3 for dotted, etc.) Similarly, negative
- arguments generate markers of different colors and/or styles
- (box, cross, triangle, etc.).
-
- -n Omit numeric labels on axes (uses more of the screen for the
- graph, therefore effectively increases resolution slightly).
-
- -t Transpose x and y values before plotting (-x now refers to
- vertical axis).
-
- -x[l] [min [max [junk]]] If l is present, x axis is logrithmic. First argument,
- if present, is lower x limit. Second argument, if present, is
- upper x limit. A third numeric argument may be present but
- will be ignored. By default, these values will be determined
- automatically.
-
- -y[l] [min [max [junk]]] Similarly for y axis
-
- -h <n> argument is the fraction of the vertical space to be used for
- the graph.
-
- -u <n> argument is the fraction of the vertical space to move up
- before plotting.
-
- -w <n> argument is the fraction of the horizontal space to be used
- for the graph (useful if screen dump routine doesn't dump the
- entire width of the screen).
-
- -r <n> argument is the fraction of the horizontal space to move right
- before plotting.
-
- NOTES
- Graph is largely equivalent to the program of the same name on Unix,
- with the following exceptions: Data may come from a file rather than
- the standard input. Line segments that go out of bounds are windowed
- rather than being dropped. Graph may adjust the specified lower or
- upper limits (outwards) to give convenient axis labels. Steps along
- axes may not be specified. The screen is always cleared before
- plotting. The default grid type is frame with tics rather than full
- grid. Axes may not be reversed by specifying a lower limit greater
- than the upper limit.
-
- BUGS
- Clearing the screen is mandatory before each plot.
-
- If the data comes from the standard input, the screen parameters are
- not reset after plotting. On the Z-100, the keyboard is left with key
- expansion disabled. (These conditions can be corrected by running
- graph again and specifying a file).
-
- AUTHOR
- Copyright (c) 1985 by James R. Van Zandt (jrv@mitre-bedford) 27
- Spencer Dr., Nashua NH 03062, 603-888-2272. Resale forbidden, copying
- for personal use encouraged. Constructive comments welcome.