gnuplot documentation
gnuplot documentation
gnuplot documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
70 <strong>gnuplot</strong> 4.3 60 PLOT<br />
# is translated via origin.<br />
plot ’’ binary array=512x1024:1024x512 format=’%uchar’ \<br />
dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage<br />
# Four separate records in which the coordinates are part of the<br />
# data file. The file was created with a endianess different from<br />
# the system on which <strong>gnuplot</strong> is running.<br />
splot ’’ binary record=30:30:29:26 endian=swap u 1:2:3<br />
See also binary matrix (p. 151).<br />
60.2.3 Every<br />
The every keyword allows a periodic sampling of a data set to be plotted.<br />
In the discussion a "point" is a datum defined by a single record in the file; "block" here will mean the<br />
same thing as "datablock" (see glossary (p. 31)).<br />
Syntax:<br />
plot ’file’ every {}<br />
{:{}<br />
{:{}<br />
{:{}<br />
{:{}<br />
{:}}}}}<br />
The data points to be plotted are selected according to a loop from to <br />
with increment and the blocks according to a loop from to <br />
with increment .<br />
The first datum in each block is numbered ’0’, as is the first block in the file.<br />
Note that records containing unplottable information are counted.<br />
Any of the numbers can be omitted; the increments default to unity, the start values to the first point<br />
or block, and the end values to the last point or block. If every is not specified, all points in all lines<br />
are plotted.<br />
Examples:<br />
every :::3::3<br />
every :::::9<br />
every 2:2<br />
every ::5::15<br />
# selects just the fourth block (’0’ is first)<br />
# selects the first 10 blocks<br />
# selects every other point in every other block<br />
# selects points 5 through 15 in each block<br />
See<br />
,<br />
, and<br />
.<br />
simple plot demos (simple.dem)<br />
Non-parametric splot demos<br />
Parametric splot demos<br />
60.2.4 Example datafile<br />
This example plots the data in the file "population.dat" and a theoretical curve:<br />
pop(x) = 103*exp((1965-x)/10)<br />
plot [1960:1990] ’population.dat’, pop(x)<br />
The file "population.dat" might contain: