Note that there is a separate default fill style for rectangles created by
set obj. See set style rectangle (p. ).
Syntax:
set style fill {empty | {transparent} solid {<density>} | {transparent} pattern {<n>}} {border {lt} {lc <colorspec>} | noborder}
The empty option causes filled areas not to be filled. This is the default.
The solid option causes filling with a solid color, if the terminal
supports that. The density
parameter specifies the intensity of the
fill color. At a
density
of 0.0, the box is empty, at
density
of 1.0,
the inner area is of the same color as the current linetype.
Some terminal types can vary the density continuously; others implement
only a few levels of partial fill. If no
density
parameter is given,
it defaults to 1.
The pattern option causes filling to be done with a fill pattern supplied
by the terminal driver. The kind and number of available fill patterns
depend on the terminal driver. If multiple datasets using filled boxes are
plotted, the pattern cycles through all available pattern types, starting
from pattern n
, much as the line type cycles for multiple line plots.
Fill color (fillcolor colorspec
) is distinct from fill style. I.e. plot
elements or objects can share a fillstyle while retaining separate colors.
In most places where a fillstyle is accepted you can also specify a fill color.
Fillcolor may be abbreviated fc.
Otherwise the fill color is take from the current linetype.
Example:
plot FOO with boxes fillstyle solid 1.0 fillcolor "cyan"