Basic Graphics

Example B.7, below, demonstrate a very simple gio (IRAF graphics) application. It draws a box in graphics and writes a text string. It follows the conventions of most IRAF graphics applications. The graphics device is specified in the task parameter device and the graphics stream is STDGRAPH. Note that gopen() returns a pointer and this value is passed to all subsequent graphics procedures. In addition, the include file <gset.h> is specified. This contains defines for gio macros such as G_TXSIZE.

Generated with CERN WebMaker