Grap— a language for typesetting graphs. Tutorial and user manual
Jon Louis Bentley, Brian W. Kernighan · 1990
Grap is a language for describing plots of data. This graph of the 1984 age distribution in the United States 0 20 40 60 80 0 1 2 3 4 5 Population (in millions) 1984 Age is produced by the grap commands coord x 0,89 y 0,5 label left "Population" "(in millions)" label bottom "1984 Age" draw solid copy "agepop.d" (Each line in the data file agepop.d contains an age and the number of Americans of that age alive in 1984; the file is sorted by age.) The grap preprocessor works with pic [4] and troff [5]. Most of its input is passed through untouched, but statements between .G1 and .G2 are translated into pic commands that draw graphs. Revised, May Grap --- A Language for Typesetting Graphs Tutorial and User Manual Jon L. Bentley Brian W. Kernighan AT&T Bell Laboratories Murray Hill, New Jersey 07974 1. Introduction Grap is a language for describing graphical displays of data. It provides such services as automatic scaling and labeling of axes, and for statements, if statements, and m...