Gallery - Line plots


Welcome     Gallery     Handbook


Manual page for 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.


Example 1 - lines prefab

lines prefab

The lines prefab is the easiest way to create basic line plots without writing any script code.


Example 2 - script

lineplot1

Simple example. Both X and Y come from data fields.



Example 3 - script


sar-cpu

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



Example 4 - script


stock

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



Example 5 - script


lineplot3

This example is a comparison of two values over time, and displays the curves as step values. Step values are used where interpolation between samples is not appropriate, or for stylistic reasons. Use the stairstep option. Y values are shown at each step as well (numbers option.



Example 6 - script


devol

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



Example 7 - script


lineplot4

This example uses proc lineplot with instancemode and accum options, to count occurrances over time. Occurrances having the same date are summed into one data point (using groupmode). This allows display of event data without having to tabulate first. The data must be presented in chronological order.



Example 8 - script


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 9 - script


lineplot6

Characters within the point symbols. The characters comes from a data field. Use the pointsymbol and pointlabelfield attributes.



Example 10 - script


lineplot6

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



Example 11 - script


lpfilled1

In this example, proc lineplot is invoked twice, first to do the filled area using the fill option, and then again to do the red line. The Y axis grid is done last so that it is on top of everything else.



Example 12 - script


lpfilled2

Same as above, with a portion of the area highlighted. 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 13 - script


lpfilled3

Another example with more data points.



Example 14 - script


td

Here, two lineplots with points denoted by geometric symbols are plotted along with three curves with filled area underneath.



Example 15 - script


accrual

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


data display engine  
Copyright Steve Grubb


Markup created by unroff 1.0,    September 14, 2001.