C-PLOT

Scientific Graphics and Data Analysis

3.2.13. - Modes 11 & 12: Read unlimited data from files



These modes let you plot an unlimited of number of data points with only one call to gd. When you enter gd 11, a first set of points is read into memory. The number of points read is the number of in-memory points as set in the site-initialization file (see Appendix A). These points will be drawn when you plot the points or the error bars using the p, pz, z, zz, pp, zp, pb or zb commands. The next set of points will then automatically be read from the file and plotted, and so on, until the file is exhausted or the limit set with the =total option (described below) is reached. At the conclusion of the point plotting, the points in memory will be the last points read. However, if you plot the points again, the first points in the file will be read and all the points will be plotted.

All other commands that use data points will only use those currently in memory after reading in data with these modes.

If you enter gd 6, the current points in memory will continue to be available, and only those points will be drawn when you enter the commands to draw points.

Typing a ^C while reading from the file, either during the gd command or while drawing the points, will abort the read, and the number of points successfully read will be reported. A subsequent command to plot the data points will still read the entire data set from the file and plot all the points.