Credits | Overview | Plotting Styles | Commands | Terminals |
---|
If a format is specified, it is used to read in each datafile record using the C library 'scanf' function. Otherwise the record is interpreted as consisting of columns (fields) of data separated by whitespace (spaces and/or tabs), but see datafile separator.
'scanf' itself accepts several numerical specifications but gnuplot requires all inputs to be double-precision floating-point variables, so "%lf" is essentially the only permissible specifier. The format string must contain at least one such input specifier and no more than seven of them. 'scanf' expects to see white space -- a blank, tab ("\t"), newline ("\n"), or formfeed ("\f") -- between numbers; anything else in the input stream must be explicitly skipped.
Note that the use of "\t", "\n", or "\f" requires use of double-quotes rather than single-quotes.