1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
|
<html>
<head>
<!-- This file has been generated by unroff 1.0, 09/11/01 11:59:54. -->
<!-- Do not edit! -->
<STYLE TYPE="text/css">
<!--
A:link{text-decoration:none}
A:visited{text-decoration:none}
A:active{text-decoration:none}
-->
</STYLE>
<title>ploticus: gallery - line plots</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550 ><tr>
<td>
<table cellpadding=2 width=550><tr>
<td><br><h2>Gallery - Line plots</h2></td>
<td align=right>
<small>
<a href="../doc/Welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
<a href="../doc/Welcome.html">Welcome</a>
<a href="../gallery/index.html">Gallery</a>
<a href="../doc/Contents.html">Handbook</a>
<td></tr></table>
</td></tr>
<td>
<br>
<br>
<title>Manual page for Gallery_-_Line_plots(PL)</title>
</head>
<body>
<p>
This page contains a series of lineplot examples
illustrating the available varieties and options.
These examples all use ploticus's
<a href="../doc/lineplot.html">proc lineplot</a>.
<p>
<h1><br>The line1 prefab</h1>
<a href="../doc/line1.html">line1 prefab<br><img src="../prefabs/line1c.gif"></a>
<br>
The line1 prefab is the easiest way to create basic line plots without writing any script code.
<p>
<h1><br>Example 1</h1>
<a href="lineplot1.htm">lineplot1<br><img src="lineplot1.gif"></a>
<br>
Simple example. Both X and Y come from data fields.
<h1><br><br>Example 1a</h1>
<br><a href="sar-cpu.htm">sar-cpu<br><img src="sar-cpu.gif"></a>
<br>
This example plots cpu utilization data produced by the sar(1) utility.
<h1><br><br>Example 2</h1>
<br><a href="stock.htm">stock<br><img src="stock.gif"></a>
<br>
Stock price / volume display. The data are read from a file.
<h1><br><br>Example 3</h1>
<br><a href="lineplot3.htm">lineplot3<br><img src="lineplot3.gif"></a>
<br>
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 <b>stairstep</b> option.
Y values are shown at each step as well (<b>numbers</b> option.
<h1><br><br>Example 4</h1>
<br><a href="devol.htm">devol<br><img src="devol.gif"></a>
<br>
Another example where stairstep mode is used.
This example is also available with a <a href="transparent.htm">transparent background</a>.
<h1><br><br>Example 5</h1>
<br><a href="lineplot4.htm">lineplot4<br><img src="lineplot4.gif"></a>
<br>
This example uses <b>proc lineplot</b> with <b>instancemode</b>
and <b>accum</b> options,
to count occurrances over time. Occurrances having the same date
are summed into one data point (using <b>groupmode</b>).
This allows display of event data without having to tabulate first.
The data must be presented in chronological order.
<h1><br><br>Example 6</h1>
<br><a href="lineplot5.htm">lineplot5<br><img src="lineplot5.gif"></a>
<br>
A lineplot with symbols marking the points.
Use the <b>pointsymbol</b> attribute.
Note that the points where lines meet is denoted by a special symbol,
using the <b>altsym</b> and <b>altwhen</b> options.
<h1><br><br>Example 7</h1>
<br><a href="lineplot6.htm">lineplot6<br><img src="lineplot6.gif"></a>
<br>
Characters within the point symbols.
The characters comes from a data field.
Use the <b>pointsymbol</b> and <b>pointlabelfield</b> attributes.
<h1><br><br>Example 8</h1>
<br><a href="lineplot7.htm">lineplot6<br><img src="lineplot7.gif"></a>
<br>
Y value shown at selected points. Use <b>numbers</b> option, and
the <b>pointlabelrange</b> attribute to control the range where
the labels will appear.
<a name=lpfilled></a>
<h1><br><br> Example 9</h1>
<br><a href="lpfilled1.htm">lpfilled1<br><img src="lpfilled1.gif"></a>
<br>
In this example, <b>proc lineplot</b> is invoked twice, first to do
the filled area using the <b>fill</b> 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.
<h1><br><br> Example 10</h1>
<br><a href="lpfilled2.htm">lpfilled2<br><img src="lpfilled2.gif"></a>
<br>
Same as above, with a portion of the area highlighted.
<b>proc lineplot</b> is invoked three times, first to do
the filled area using the <b>fill</b> option,
second to do the highlight area,
and third to do the red line.
The Y axis grid is done last.
<h1><br><br> Example 11</h1>
<br><a href="lpfilled3.htm">lpfilled3<br><img src="lpfilled3.gif"></a>
<br>
Another example with more data points.
<h1><br><br>Example 12</h1>
<br><a href="td.htm">td<br><img src="td.gif"></a>
<br>
Here, two lineplots with points denoted by geometric symbols
are plotted along with three curves with filled area underneath.
<h1><br><br>Example 13</h1>
<br><a href="accrual.htm">accrual<br><img src="accrual.gif"></a>
<br>
In this example, ploticus accumulates individual values to
produce cumulative lines. This example also illustrates
using drawcommands to draw the straight goal lines.
<br>
<br>
</td></tr>
<td align=right>
<a href="Welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif">
</center>
</td></tr>
</table>
<p><hr>
Markup created by <em>unroff</em> 1.0, <tt> </tt> <tt> </tt>September 11, 2001.
</body>
</html>
|