next up previous contents index
Next: Smooth Up: Data Previous: Example datafile   Contents   Index


Index

The index keyword allows only some of the data sets in a multi-data-set file to be plotted.

Syntax:

     plot 'file' index <m>{{:<n>}:<p>}

Data sets are separated by pairs of blank records. index 4#4m5#5 selects only set 4#4m5#5; index 4#4m5#5:4#4n5#5 selects sets in the range 4#4m5#5 to 4#4n5#5; and index 4#4m5#5:4#4n5#5:4#4p5#5 selects indices 4#4m5#5, 4#4m5#5+4#4p5#5, 4#4m5#5+24#4p5#5, etc., but stopping at 4#4n5#5. Following C indexing, the index 0 is assigned to the first data set in the file. Specifying too large an index results in an error message. If index is not specified, all sets are plotted as a single data set.

Example:

     plot 'file' index 4:5

http://www.gnuplot.info/demo/multimsh.html



Alex T Prengel 2007-03-13