|
|
1.1 ! root 1: .\" @(#)graph.1g 6.1 (Berkeley) 4/29/85 ! 2: .\" ! 3: .TH GRAPH 1G "April 29, 1985" ! 4: .AT 3 ! 5: .SH NAME ! 6: graph \- draw a graph ! 7: .SH SYNOPSIS ! 8: .B graph ! 9: [ option ] ... ! 10: .SH DESCRIPTION ! 11: .I Graph ! 12: with no options takes pairs of numbers from the ! 13: standard input as abscissas and ! 14: ordinates of a graph. ! 15: Successive points are connected by straight lines. ! 16: The graph is encoded on the standard output ! 17: for display by the ! 18: .IR plot (1G) ! 19: filters. ! 20: .PP ! 21: If the coordinates of a point are followed by ! 22: a nonnumeric string, that string is printed as a ! 23: label beginning on the point. ! 24: Labels may be surrounded with quotes "...", in ! 25: which case they may be empty or contain blanks ! 26: and numbers; ! 27: labels never contain newlines. ! 28: .PP ! 29: The following options are recognized, ! 30: each as a separate argument. ! 31: .TP ! 32: .B \-a ! 33: Supply abscissas automatically (they are missing from ! 34: the input); spacing is given by the next ! 35: argument (default 1). ! 36: A second optional argument is the starting point for ! 37: automatic abscissas (default 0 or lower limit given by ! 38: .BR \-x ). ! 39: .TP ! 40: .B \-b ! 41: Break (disconnect) the graph after each label in the input. ! 42: .TP ! 43: .B \-c ! 44: Character string given by next argument ! 45: is default label for each point. ! 46: .TP ! 47: .B \-g ! 48: Next argument is grid style, ! 49: 0 no grid, 1 frame with ticks, 2 full grid (default). ! 50: .TP ! 51: .B \-l ! 52: Next argument is label for graph. ! 53: .TP ! 54: .B \-m ! 55: Next argument is mode (style) ! 56: of connecting lines: ! 57: 0 disconnected, 1 connected (default). ! 58: Some devices give distinguishable line styles ! 59: for other small integers. ! 60: .TP ! 61: .B \-s ! 62: Save screen, don't erase before plotting. ! 63: .TP ! 64: \fB\-x\fR [ \fBl\fR ] ! 65: If ! 66: .B l ! 67: is present, x axis is logarithmic. ! 68: Next 1 (or 2) arguments are lower (and upper) ! 69: .IR x "" ! 70: limits. ! 71: Third argument, if present, is grid spacing on ! 72: .I x ! 73: axis. ! 74: Normally these quantities are determined automatically. ! 75: .TP ! 76: \fB\-y\fR [ \fBl\fR ] ! 77: Similarly for ! 78: .IR y . ! 79: .TP ! 80: .B \-h ! 81: Next argument is fraction of space for height. ! 82: .TP ! 83: .B \-w ! 84: Similarly for width. ! 85: .TP ! 86: .B \-r ! 87: Next argument is fraction of space to move right before plotting. ! 88: .TP ! 89: .B \-u ! 90: Similarly to move up before plotting. ! 91: .TP ! 92: .B \-t ! 93: Transpose horizontal and vertical axes. ! 94: (Option ! 95: .B \-x ! 96: now applies to the vertical axis.) ! 97: .PP ! 98: A legend indicating grid range is produced ! 99: with a grid unless the ! 100: .B \-s ! 101: option is present. ! 102: .PP ! 103: If a specified lower limit exceeds the upper limit, ! 104: the axis ! 105: is reversed. ! 106: .SH "SEE ALSO" ! 107: spline(1G), plot(1G) ! 108: .SH BUGS ! 109: .I Graph ! 110: stores all points internally and drops those for which ! 111: there isn't room. ! 112: .br ! 113: Segments that run out of bounds are dropped, not windowed. ! 114: .br ! 115: Logarithmic axes may not be reversed.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.