7 Graphics

Contents of this section

DRP uses the PLPLOT plotting library (Tony Richardson et.al) for graphics. The X-window driver of PLPLOT was modified to plot in an existing window (drpwindow), rather than to open a new window by its own. The driver will also allow plotting over existing plots, which is used e.g. to plot baseline fits on top of a spectrum plotted earlier by an independent program. The metacode driver is used to implement the hardcopy and reshow facility. (The reshow program is used by drpwindow to redraw itself when needed.) The metacode driver will write to a (binary) file called .metacode.drp (use ls -a $HOME to see it).

The source code for drpwindow uses plain X~Toolkit routines in order to facilitate porting to various flavours of UNIX with different window managers (e.g. Motif, OpenLook etc.). So far drpwindow does not use the X resource mechanism, it will open a window a quarter of the size of your screen (half the width and height), but you can always drag it to the size you like, of course, once it has opened.

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter