g2 is an easy to use, portable and powerful 2D graphics library. It provides a comprehensive set of functions for simultaneous generation of graphical output on different types of devices. The following devices are currently supported: Postscript, X11, FIG (xfig), PNG, and JPEG using the gd library, and Win32. g2 is written in C (ANSI) and additionally has Fortran, Perl, and Python interfaces.