C-PLOT

Scientific Graphics and Data Analysis

3.2.14. - Modes 13 & 14: Read data from binary files



These modes allow points to be plotted from binary files, the fastest way to read data into C-PLOT. The format of the file is given by the struct pt given in the include file p_plot.h That structure is:
struct  pt {
        int     p_flags;   /* flags for this point */
        float   p_d[4];    /* data */

};


Presently, p_flags contains line-control status in the low-order two bits. The elements in p_d[4] hold x, y, x error bars and y error bars in 2D mode. In 3D mode they hold x, y, z and z error bars.

The general gd command options, described below, can be used with these modes.

Mode 14 reads from an indefinitely long file, like modes 11 and 12.