gnuplot documentation
gnuplot documentation
gnuplot documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
66 <strong>gnuplot</strong> 4.3 60 PLOT<br />
the automatic extension of the axis range upto the next tic mark.<br />
BINARY DATA FILES:<br />
Gnuplot can read binary data files. However, adequate information about details of the file format<br />
must be given on the command line or extracted from the file itself for a supported binary filetype. In<br />
particular, there are two structures for binary files, a matrix binary format and a general binary format.<br />
The matrix binary format contains a two dimensional array of 32 bit IEEE float values with an additional<br />
column and row of coordinate values. As with ASCII matrix, in the using list, repetition of the coordinate<br />
row constitutes column 1, repetition of the coordinate column constitutes column 2, and the array of<br />
values constitutes column 3.<br />
The general binary format contains an arbitrary number of columns for which information must be<br />
specified at the command line. For example, array, record, format and using can indicate the size,<br />
format and dimension of data. There are a variety of useful commands for skipping file headers and<br />
changing endianess. There are a set of commands for positioning and translating data since often<br />
coordinates are not part of the file when uniform sampling is inherent in the data. Different from matrix<br />
binary or ASCII, general binary does not treat the generated columns as 1, 2 or 3 in the using list.<br />
Rather, column 1 begins with column 1 of the file, or as specified in the format list.<br />
There are global default settings for the various binary options which may be set using the same syntax<br />
as the options when used as part of the (s)plot binary ... command. This syntax is<br />
set datafile binary .... The general rule is that common command-line specified parameters override<br />
file-extracted parameters which override default parameters.<br />
Matrix binary is the default binary format when no keywords specific to general binary are given, i.e.,<br />
array, record, format, filetype.<br />
General binary data can be entered at the command line via the special file name ’-’. However, this is<br />
intended for use through a pipe where programs can exchange binary data, not for keyboards. There is<br />
no "end of record" character for binary data. Gnuplot continues reading from a pipe until it has read<br />
the number of points declared in the array qualifier.<br />
See datafile binary (p. 66) for more details.<br />
60.2.1 Binary<br />
The binary keyword allows a data file to be binary as opposed to ASCII. There are two formats for<br />
binary–matrix binary and general binary. Matrix binary is a fixed format in which data appears in a 2D<br />
array with an extra row and column for coordinate values. General binary is a flexible format for which<br />
details about the file must be given at the command line.<br />
See binary matrix (p. 151) or binary general (p. 66) for more details.<br />
60.2.2 Binary general<br />
General binary data in which format information is not necessarily part of the file can be read by giving<br />
further details about the file format at the command line. Although the syntax is slightly arcane to<br />
the casual user, general binary is particularly useful for application programs using <strong>gnuplot</strong> and sending<br />
large amounts of data.<br />
Syntax:<br />
plot ’’ {binary } ...<br />
splot ’’ {binary } ...<br />
General binary format is activated by keywords in pertaining to information about file<br />
structure, i.e., array, record, format or filetype. Otherwise, matrix binary format is assumed. (See<br />
binary matrix (p. 151) for more details.)<br />
There are some standard file types that may be read for which details about the binary format may<br />
be extracted automatically. (Type show datafile binary at the command line for a list.) Otherwise,<br />
details must be specified at the command line or set in the defaults. Keywords are described below.