## Script examples gallery - Line plots

Version 2.32
Scripts

Manual page for Script_examples_gallery_-_Line_plots(PL)

This page contains a series of lineplot examples illustrating the available varieties and options. These examples all use ploticus's proc lineplot.

### See also the lines prefab, the chron prefab, and the cumufrac prefab.

### Example 1

sar-cpu
This example plots cpu utilization data produced by the sar(1) utility.

### Example 2

stock
Stock price / volume display. The data are read from a file.

### Example 3

devol
Another example where stairstep mode is used. This example is also available with a transparent background.

### Example 4

lineplot20
This example demonstrates various combinations of `stairstep`, `fill`, and `gapmissing`. The latter is used to cause a gap in the curve where missing data is encountered.

### Example 5

lineplot5
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.

### Example 6

lineplot7
Y value shown at selected points. Use numbers option, and the pointlabelrange attribute to control the range where the labels will appear.

###
Example 7

accrual
In this example, ploticus accumulates individual values to produce cumulative lines. This example also illustrates using drawcommands to draw the straight goal lines.

# Filled lineplots

### Example 1

lpfilled2
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.

### Example 2

td
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.

### Example 3

stackedarea
A stacked area graph. The script contains a filter which stacks the levels.
data display engine
Copyright Steve Grubb

Markup created by unroff 1.0, `` `` August 23, 2005.