manpagez: man pages & more
info gnuplot
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.12.1.5 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

splot with indices demo.


© manpagez.com 2000-2025
Individual documents may contain additional copyright information.