Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

graph(1)  —  Commands

NAME

graph − Draws a graph. 

SYNOPSIS

graph [flag ...]

Note

This command will be retired in a future release.

FLAGS

−aSupplies abscissas automatically and uses the next two arguments to set the spacing and starting point.  Spacing is given by the next argument (default 1).  A second optional argument is the starting point for automatic abscissas (default 0 or the lower limit given by −x). 

−bBreaks the graph after each label in the input. 

−cUses the specified string (next argument) as the label. 

−gUses the specified number (next argument) in setting up the grid style:  0 (no grid), 1 (frame with ticks), and 2 (full grid).  The default is 2. 

−hUses the specified number (next argument) as the fraction of space for height. 

−lUses the specified string (next argument) as the graph label. 

−mUses the specified number (next argument) in setting up the line mode:  0 (disconnected) and 1 (connected).  The default is 1. 

−rUses the specified number (next argument) as the fraction of space to right before plotting. 

−sSaves the screen before plotting.  (No erase)

−tTransposes the vertical and horizontal axes. 

−uUses the specified number (next argument) as the fraction of space to move up before plotting. 

−wUses the specified number (next argument) as the fraction of space for width. 

−x [ l ]Determines the x axis logarithmically.  The next two arguments after the l argument determine lower and upper x limits respectively.  The third argument determines grid spacing on x axis. 

−y [ l ]Determines the y axis logarithmically.  The next two arguments after the l argument determine lower and upper y limits respectively.  The third argument determines grid spacing on y axis. 

DESCRIPTION

The graph command with no options takes pairs of numbers from the standard input as abscissas and ordinates of a graph.  Successive points are connected by straight lines.  The graph is encoded on the standard output for display by the plot filters. 

If the coordinates of a point are followed by a nonnumeric string, that string is printed as a label beginning on the point.  Labels can be surrounded with quotation marks ("..."), in which case they can be empty or contain blanks and numbers.  Labels never contain new lines. 

A legend indicating the grid range is produced with a grid unless the −s flag is present. 

If a specified lower limit exceeds the upper limit, the axis is reversed. 

RESTRICTIONS

The graph command stores all points internally and drops those for which there is no room. 

Segments that run out of bounds are dropped, not windowed. 

Logarithmic axes cannot be reversed. 

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