This page contains a series of lineplot examples
illustrating the available varieties and options.
These examples all use ploticus's
See also the lines prefab,
the chron prefab,
and the cumufrac prefab.
This example plots cpu utilization data produced by the sar(1) utility.
Stock price / volume display. The data are read from a file.
Another example where stairstep mode is used.
This example is also available with a transparent background.
This example demonstrates various combinations of stairstep, fill, and
gapmissing. The latter is used to cause a gap in the curve where missing data
A lineplot with symbols marking the points.
Use the pointsymbol attribute.
Note that the points where lines meet is denoted by a special symbol,
using the altsym and altwhen options.
Y value shown at selected points. Use numbers option, and
the pointlabelrange attribute to control the range where
the labels will appear.
In this example, ploticus accumulates individual values to
produce cumulative lines. This example also illustrates
using drawcommands to draw the straight goal lines.
proc lineplot is invoked three times, first to do
the filled area using the fill option,
second to do the highlight area,
and third to do the red line.
The Y axis grid is done last.
Here, two lineplots with points denoted by geometric symbols
are plotted along with three curves with filled area underneath.
This requires that the filled curves be drawn from back to front,
and that the three curves have magnitudes such that all will be visible.
A stacked area graph. The script contains a filter which stacks the levels.