GRAP(ID:4867/gra013)


Language for Typesetting Graphs
Bentley and Kernighan, Bell Labs 1991




Related languages
GRAP => PIC   Target language for

References:
  • Bentley, Jon L. and Kernighan, Brian W. "Grap - A Language for Typesetting Graphs - Tutorial and User Manual" Computing Science Technical Report No. 114 AT&T Bell Laboratories Murray Hill, New Jersey 07974 Revised, May 1991 view details Extract: Introduction
    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 macros to facilitate user programmability. Grap is  intended primarily for including graphs in documents prepared on the UNIX operating system, and is only margi-  nally useful for elementary tasks in data analysis.
    Section 2 of this document is a tutorial introduction to grap; readers who find it slow going may wish to skim ahead. The examples in Section 3 illustrate the various kinds of graphs that grap can produce and some common  grap idioms. Mundane matters about using grap are discussed in Section 4, and Section 5 contains a brief reference  manual.
    We have tried to illustrate good principles of statistics and graphical design in the graphs we present. In several places, though, good taste has lost to the necessity of illustrating grap capabilities. Readers interested in statistical integrity and taste should consult the literature, for example [2], [6], [3]. Abstract: Grap is a language for describing plots of data. 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.