| 1 | <html><h1>bars3</h1><img src="bars3.gif"><p> |
| 2 | <a href="gall.using.html">How to download and try this example</a><br> |
| 3 | |
| 4 | <pre><b>Usage: pl -gif bars3.htm |
| 5 | <hr></b> |
| 6 | |
| 7 | #set TODATE = 9903 |
| 8 | |
| 9 | //<b> Set up plotting area using <a href="../doc/areadef.html">proc areadef</a></b> |
| 10 | #proc areadef |
| 11 | title: Monthly volume per operator |
| 12 | rectangle: 1 1 4 4 |
| 13 | xscaletype: date yymm |
| 14 | xrange: 9704 9906 |
| 15 | yrange: 0 1800 |
| 16 | xaxis.stubs: inc 1 month |
| 17 | xaxis.stubformat: M |
| 18 | xaxis.autoyears: yes |
| 19 | yaxis.stubs: inc 500 |
| 20 | yaxis.labeldetails: adjust=-0.3,0 |
| 21 | |
| 22 | //<b> Read and process data file using <a href="../doc/getdata.html">proc getdata</a></b> |
| 23 | #proc getdata |
| 24 | file: vermonth.tab |
| 25 | |
| 26 | //<b> draw bars for steve using <a href="../doc/bars.html">proc bars</a></b> |
| 27 | #proc bars |
| 28 | lenfield: 2 |
| 29 | locfield: 1 |
| 30 | color: red |
| 31 | outline: no |
| 32 | barsrange: 9704 @TODATE |
| 33 | legendlabel: Steve |
| 34 | barwidth: 0.07 |
| 35 | outline: yes |
| 36 | #saveas B |
| 37 | |
| 38 | //<b> draw bars for lisa, stacking them above steve, using <a href="../doc/bars.html">proc bars</a></b> |
| 39 | #proc bars |
| 40 | #clone: B |
| 41 | lenfield: 3 |
| 42 | color: yellow |
| 43 | stackfields: 2 |
| 44 | legendlabel: Lisa |
| 45 | |
| 46 | //<b> draw bars for rob, stacking them above lisa and steve, using <a href="../doc/bars.html">proc bars</a></b> |
| 47 | #proc bars |
| 48 | #clone: B |
| 49 | lenfield: 4 |
| 50 | color: blue |
| 51 | stackfields: 2 3 |
| 52 | legendlabel: Rob |
| 53 | |
| 54 | //<b> draw bars for takisha, stacking them above the others, using <a href="../doc/bars.html">proc bars</a></b> |
| 55 | #proc bars |
| 56 | #clone: B |
| 57 | lenfield: 5 |
| 58 | color: green |
| 59 | stackfields: 2 3 4 |
| 60 | legendlabel: Takisha |
| 61 | |
| 62 | //<b> render legend using labels defined above <a href="../doc/legend.html">(proc legend)</a></b> |
| 63 | #proc legend |
| 64 | location: min+0.3 max |
| 65 | reverseorder: yes |
| 66 | seglen: 0.3 |
| 67 |