Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ graph(1g) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

spline

tplot



GRAPH(1g,C)                 AIX Commands Reference                  GRAPH(1g,C)



-------------------------------------------------------------------------------
graph



PURPOSE

Draws a graph.

SYNTAX


         +-----------------------+   +-----------------------------+
graph ---| +-------------------+ |---|      +---- 1 -------------+ |--->
         +-| -g grid  -s       |-+   +- -a -|       +--- 0 ----+ |-+
           | -h space -t       |            +- num -|          |-+
           | -l label -u space |                    +- lowlim -+
           | -m style -w space |
           | -r space          |
           +-------------------+

  +-------------------+ +---------------------------------------------------+
>-|          +------+ |-|      +------+ +---------------------------------+ |->
  +- -cchar -|      |-+ +- -x -|      |-|         +---------------------+ |-+
             +- -b -+          +- -l -+ +- lolim -|         +---------+ |-+
                                                  +- uplim -|         |-+
                                                            +- space -+

    +-----------------------------------------------------+
>---|      +------+   +---------------------------------+ |---|
    +- -y -|      |---|         +---------------------+ |-+
           +- -l -+   +- lolim -|         +---------+ |-+
                                +- uplim -|         |-+
                                          +- space -+


DESCRIPTION

The graph command reads pairs of numbers from standard input, where each pair
is the x and y coordinates of a point on a graph.  The command processes the
data that allows the successive points to be connected by straight lines when
printed and then writes the graph to standard output.  See "tplot" for
information on how to code the output for printing.

In the input, non-numeric strings following the coordinates of a point are
labels.  Labels begin on the point.  Labels can be surrounded with """ (double
quotation marks), in which case they can be empty or contain blanks and
numbers.  Labels cannot contain new-line characters.

The graph command stores all points internally and drops those for which there
is not room.  It also drops segments that run out of bounds.  The graph command
produces a legend indicating grid range with a grid unless you specify the -s



Processed November 8, 1990        GRAPH(1g,C)                                 1





GRAPH(1g,C)                 AIX Commands Reference                  GRAPH(1g,C)



flag.  If a specified lower limit exceeds the upper limit, the graph command
reverses the axis.  The logarithmic axes cannot be reversed.

FLAGS

-a [num [lolim]]
             Supplies abscissas missing from the input automatically.  The num
             determines the spacing on the axis (the default is 1).  The lolim
             determines the starting point for automatic abscissas (the default
             is 0 or the lower limit given by -x[lolim].

-b           Breaks the graph after each label in the input.

-c  char     Uses the character string char as the default label for each
             point.

-g  grid     Uses grid as the grid style, where grid = 0 indicates no grid,
             grid = 1 indicates a frame with tick marks, and grid = 2 indicates
             a full grid (default).

-h  space    Uses space as a fraction of space for height.

-l  "label"  Uses label as a label for the graph.

-m  style    Uses style as the style of connecting lines, where style=0
             indicates disconnected lines, and style=1 indicates connected
             lines (default).

-r  space    Uses space as the fraction of space to move to the right before
             plotting.

-s           Saves the current graphic screen image; does not erase before
             starting the plot.

-t           Transposes horizontal and vertical axes (-x now applies to the
             vertical axis).

-u  space    Uses space as the fraction of space to move up before plotting.

-w  space    Uses space as a fraction of space for width.

-x [l] [lolim [uplim [space]]]
             Makes the x axis logarithmic if l is used.  Use lolim as the lower
             x axis limit and uplim as the upper x axis limit.  Use space for
             the grid spacing on the x axis.  Normally these are determined
             automatically.

-y  [l]  [lolim  [uplim  [space]]]
             Acts the same as -x for the y axis.

RELATED INFORMATION




Processed November 8, 1990        GRAPH(1g,C)                                 2





GRAPH(1,C)                  AIX Commands Reference                   GRAPH(1,C)



See the following commands:  "spline" and "tplot."






















































Processed November 8, 1990        GRAPH(1,C)                                  3



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026