14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

68 <strong>gnuplot</strong> 4.3 60 PLOT<br />

default: assume file endianess is the same as compiler<br />

swap (swab): Interchange the significance. (If things<br />

don’t look right, try this.)<br />

Gnuplot can support "middle" ("pdp") endian if it is compiled with that option.<br />

60.2.2.5 Filetype For some standard binary file formats <strong>gnuplot</strong> can extract all the necessary information<br />

from the file in question. As an example, "format=edf" will read ESRF Header File format<br />

files. For a list of the currently supported file formats, type show datafile binary filetypes.<br />

There is a special file type called auto for which <strong>gnuplot</strong> will check if the binary file’s extension is a<br />

quasi-standard extension for a supported format.<br />

Command line keywords may be used to override settings extracted from the file. The settings from the<br />

file override any defaults. (See set datafile binary (p. 96) for details.)<br />

60.2.2.5.1 Avs avs is one of the automatically recognized binary file types for images. AVS is an extremely<br />

simple format, suitable mostly for streaming between applications. It consists of 2 longs (xwidth,<br />

ywidth) followed by a stream of pixels, each with four bytes of information alpha/red/green/blue.<br />

60.2.2.5.2 Edf edf is one of the automatically recognized binary file types for images. EDF stands<br />

for ESRF Data Format, and it supports both edf and ehf formats (the latter means ESRF Header<br />

Format). More information on specifications can be found at<br />

http://www.esrf.fr/computing/expg/subgroups/general/format/Format.html<br />

See also binary (p. 66).<br />

60.2.2.6 Keywords The following keywords apply only when generating coordinates. That is, when<br />

the keyword array is used.<br />

60.2.2.6.1 Scan A great deal of confusion can arise concerning the relationship between how <strong>gnuplot</strong><br />

scans a binary file and the dimensions seen on the plot. To lessen the confusion, conceptually think of<br />

<strong>gnuplot</strong> always scanning the binary file point/line/plane or fast/medium/slow. Then this keyword is<br />

used to tell <strong>gnuplot</strong> how to map this scanning convention to the Cartesian convention shown in plots,<br />

i.e., x/y/z. The qualifier for scan is a two or three letter code representing where point is assigned (first<br />

letter), line is assigned (second letter), and plane is assigned (third letter). For example, scan=yx<br />

means the fastest, point-by-point, increment should be mapped along the Cartesian y dimension and<br />

the middle, line-by-line, increment should be mapped along the x dimension.<br />

When the plotting mode is plot, the qualifier code can include the two letters x and y. For splot, it<br />

can include the three letters x, y and z.<br />

There is nothing restricting the inherent mapping from point/line/plane to apply only to Cartesian<br />

coordinates. For this reason there are cylindrical coordinate synonyms for the qualifier codes where t<br />

(theta), r and z are analogous to the x, y and z of Cartesian coordinates.<br />

60.2.2.6.2 Transpose Shorthand notation for scan=yx or scan=yxz.<br />

60.2.2.6.3 Dx, dy, dz When <strong>gnuplot</strong> generates coordinates, it uses the spacing described by these<br />

keywords. For example dx=10 dy=20 would mean space samples along the x dimension by 10 and<br />

space samples along the y dimension by 20. dy cannot appear if dx does not appear. Similarly, dz<br />

cannot appear if dy does not appear. If the underlying dimensions are greater than the keywords<br />

specified, the spacing of the highest dimension given is extended to the other dimensions. For example,<br />

if an image is being read from a file and only dx=3.5 is given <strong>gnuplot</strong> uses a delta x and delta y of 3.5.<br />

The following keywords also apply only when generating coordinates. However they may also be used<br />

with matrix binary files.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!