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 5#5m6#6 selects only set 5#5m6#6; index 5#5m6#6:5#5n6#6 selects sets in the range 5#5m6#6 to 5#5n6#6; and index 5#5m6#6:5#5n6#6:5#5p6#6 selects indices 5#5m6#6, 5#5m6#6+5#5p6#6, 5#5m6#6+25#5p6#6, etc., but stopping at 5#5n6#6. 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



Ethan Merritt 2007-03-03