01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

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.

96 gnuplot 4.0 36 SET-SHOW<br />

To plot a data file with solid filled boxes with a small vertical space separating them (bargraph):<br />

set boxwidth 0.9 relative<br />

set style fill solid 1.0<br />

plot ’file.dat’ with boxes<br />

To plot a sine and a cosine curve in pattern-filled boxes style:<br />

set style fill pattern<br />

plot sin(x) with boxes, cos(x) with boxes<br />

The sin plot will use pattern 0; the cos plot will use pattern 1. Any additional plots would cycle through<br />

the patterns supported by the terminal driver.<br />

To specify explicit fillstyles for each dataset:<br />

plot ’file1’ with boxes fs solid 0.25, \<br />

’file2’ with boxes fs solid 0.50, \<br />

’file3’ with boxes fs solid 0.75, \<br />

’file4’ with boxes fill pattern 1, \<br />

’file5’ with boxes fill empty<br />

Currently only the following terminal drivers support fillstyles other than empty: x11, windows, pm,<br />

postscript, fig, pbm, png, gif, hpdj, hppj, hpljii, hp500c, jpeg, nec cp6, epson 180dpi, epson 60dpi,<br />

epson lx800, okidata, starc and tandy 60dpi. The BeOS driver (be) is untested.<br />

36.57.6.3 Filledcurves The filledcurves style is only relevant to 2-d plotting. It draws either the<br />

current curve closed and filled, or the region between the current curve and a given axis, horizontal or<br />

vertical line, or a point, filled with the current drawing color.<br />

Syntax:<br />

set style [data | function] filledcurves [option]<br />

plot ... with filledcurves [option]<br />

where the option can be<br />

[closed | {x1 | x2 | y1 | y2}[=] | xy=,]<br />

The area is filled between the current curve and<br />

filledcurves closed ... just filled closed curve,<br />

filledcurves x1 ... x1 axis,<br />

filledcurves x2 ... x2 axis, etc for y1 and y2 axes,<br />

filledcurves y1=0 ... line y=0 (at y1 axis) ie parallel to x1 axis,<br />

filledcurves y2=42 ... line y=42 (at y2 axis) ie parallel to x2, etc,<br />

filledcurves xy=10,20 ... point 10,20 of x1,y1 axes (arc-like shape).<br />

Note: filling is supported on filled-polygon capable terminals, see help of set pm3d (p. 82) for their<br />

list.<br />

Zoom of a filled curve drawn from a datafile may produce empty or incorrect area because gnuplot is<br />

clipping points and lines, and not areas.<br />

If the values of , , are out of the drawing boundary, then they are moved to the graph<br />

boundary. Then the actually filled area in the case of option xy=, will depend on xrange and<br />

yrange.<br />

36.57.6.4 Boxxyerrorbars The boxxyerrorbars style is only relevant to 2-d data plotting. It is<br />

a combination of the boxes and xyerrorbars styles.<br />

The box width and height are determined from the x and y errors in the same way as they are for the<br />

xyerrorbars style — either from xlow to xhigh and from ylow to yhigh, or from x-xdelta to x+xdelta<br />

and from y-ydelta to y+ydelta , depending on how many data columns are provided.<br />

If filled-box support is present, then the interior of the boxes is drawn according to the current fillstyle.<br />

See set style fill (p. 93) and boxes (p. 95) for details. Alternatively a new fillstyle may be specified<br />

in the plot command.

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

Saved successfully!

Ooh no, something went wrong!