1.2.3 Shaded Regions

The following plot styles allow regions of graphs to be shaded with colour:

Both of these plot styles fill specified regions of graphs with the selected fillcolour and draw a line around the boundary of the region with the selected colour, linetype and linewidth. They differ in the format in which they expect the input data to be arranged. The yerrorshaded plot style is similar to the yerrorrange plot style, and expects three columns of data, specifying respectively the $x$-coordinate and the minimum and maximum extremes of the vertical errorbar on each datapoint. The region contained between the upper and lower limits of these error bars is filled with colour. Note that the datapoints must be sorted in order of either increasing or decreasing $x$-coordinate for sensible behaviour.

The shadedregion plot style takes only two columns of input data, specifying the $x$- and $y$-coordinates of a series of datapoints which are to be joined in a join-the-dots fashion. At the end of each dataset, the drawn path is closed and filled.

The use of these plot styles on three-dimensional graphs may produce unexpected results.