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 $<$m$>$ selects only set $<$m$>$; index $<$m$>$:$<$n$>$ selects sets in the range $<$m$>$ to $<$n$>$; and index $<$m$>$:$<$n$>$:$<$p$>$ selects indices $<$m$>$, $<$m$>$+$<$p$>$, $<$m$>$+2$<$p$>$, etc., but stopping at $<$n$>$. 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



Autobuild 2010-02-20