Next: , Previous: (dir), Up: (dir)


Master Menu

                            GNUPLOT
     
                 An Interactive Plotting Program
                  Thomas Williams & Colin Kelley
               Version 4.0 organized by: Lars Hecking
     
      Copyright (C) 1986 - 1993, 1998, 2004   Thomas Williams, Colin Kelley
     
            Mailing list for comments: gnuplot-info@lists.sourceforge.net
          Mailing list for bug reports: gnuplot-bugs@lists.sourceforge.net
     
              This manual was prepared by Dick Crawford
                        3 December 1998
     
     
     Major contributors (alphabetic order):

Next: , Previous: example_datafile, Up: data-file


2.11.1.3 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.