Jump to content

Gri graphical language

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Steinsky (talk | contribs) at 20:23, 7 November 2004 (rv vandal). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
File:Gri-logo.png
The Gri logo, created by these Gri commands

Gri is a GPL-licensed language for scientific graphics programming. The word "language" is important: Gri is command-driven, not point/click.

Some users consider Gri similar to LaTeX, since both provide extensive power as a reward for tolerating a learning curve.

Gri can make x-y graphs, contour graphs, and image graphs, in PostScript and (someday) SVG formats. Control is provided over all aspects of drawing, e.g. line widths, colors, and fonts. A limited TeX-like syntax provides common mathematical symbols.

Folks who write thousand-line Gri scripts usually start with something as simple as the following, which produces an auto-scaled graph.

open file.dat
read columns x y
draw curve