PRAG(1)

NAME
prag - compile diagrams for pic

SYNOPSIS
[ filename ... ]

DESCRIPTION

[ width [ height ]]
    prag recognizes its input only between .G1 and .G2. All other lines are copied literal to standard output. Two optional arguments to .G1 specify the width and the height.
comment
    Lines starting with a hash mark '#' are treated as comments.
line-style
    The statement sets the line style for drawing the graphs. Valid arguments are the line styles as known from pic(1) or the pseudo-style will yield a solid graph with the data points marked. Up to five default marking characters (\(bu •, \(*D Δ, \(pl +, \(sq □, \(mu ×) are used for the first five graphs. If you don't like these characters, you can override them by giving an additional drawing character to each data point (as second or third argument). Use line style to draw unconnected data points.
[ line-style ] name [ label-string ]]]
    This statement switches a new graph within a diagram. The line style of the graph is set to line-style. The graph gets the name name, which can be referred in subsequent pic statements and is labeled with the string label-string. label-string can be any valid pic string.
[ | | | ] label-string
    label-string is placed at the specified side of the whole diagram.
[ | | | ] [ where ] position ...
    Tick marks for the specified side are placed at the given positions. where says to place the ticks inside or outside the diagram.
[ | | | ] [ where ] begin end [ step ]
    This second variant of the allows the automatic generation of ticks in the range from begin to end with an optional distance step.
frame-attributes ...
    The frame-attributes are given to the box, that builds the frame of the diagram. Valid pic box attributes can be used. The internal name of the diagram frame is and of the surrounding box Both can be used in pic statements to get special effects. The boxes for the top, left, right and bottom margin are and
    forces prag to use splines for drawing graphs, which is the default. will use pic's directives respectively.
xmin ymin xmax ymax
    Graphs are drawn within the range specified.
number
    Sets the height of the diagram to number.
number
    Sets the width of the diagram to number.
[ line-style ]
    Draws a grid of line-style, per default.
{ anything }
    Anything is passed literally through pic.
[ graph-name ] [ ] position
    Sets a new data point for graph graph-name or the current graph at position position.
position
    Position is described by an y coordinate and an optional x coordinate. If the x coordinate is missing, then x is assumed to be 0, 1, 2, 3, etc.
position drawing-char
    For each data point an optional (as second or third argument respectively) drawing character can be declared. Any troff and eqn character or special character or sequence of characters can be used.

SEE ALSO
AT&T Bell Laboratories, Computing Science Technical Report No. 116, GRAP - A Graphics Language for Typesetting. This can be obtained by sending a mail message to netlib@research.att.com with a body of `send 116 from research/cstr'.

BUGS
Bug reports or suggested improvements should go to hm@GUUG.de.

AUTHOR
This program was contributed by Holger Meyer at University of Rostock, Germany. It is available via anonymous ftp from ftp.informatik.uni-rostock.de in the directory /pub/local/software.