File: bars3.htm

package info (click to toggle)
ploticus 2.41-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,848 kB
  • sloc: ansic: 46,148; perl: 1,590; sh: 392; makefile: 161
file content (67 lines) | stat: -rw-r--r-- 1,666 bytes parent folder | download | duplicates (13)
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
<html><h1>bars3</h1><img src="bars3.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>

<pre><b>Usage: pl -gif bars3.htm
<hr></b>

#set TODATE = 9903

//<b> Set up plotting area using <a href="../doc/areadef.html">proc areadef</a></b>
#proc areadef
  title: Monthly volume per operator
  rectangle: 1 1 4 4
  xscaletype: date yymm
  xrange: 9704 9906
  yrange: 0 1800
  xaxis.stubs: inc 1 month
  xaxis.stubformat: M
  xaxis.autoyears: yes
  yaxis.stubs: inc 500
  yaxis.labeldetails: adjust=-0.3,0

//<b> Read and process data file using <a href="../doc/getdata.html">proc getdata</a></b>
#proc getdata
  file: vermonth.tab

//<b> draw bars for steve using <a href="../doc/bars.html">proc bars</a></b>
#proc bars
  lenfield: 2
  locfield: 1
  color: red
  outline: no
  barsrange: 9704 @TODATE
  legendlabel: Steve
  barwidth: 0.07
  outline: yes
  #saveas B

//<b> draw bars for lisa, stacking them above steve, using <a href="../doc/bars.html">proc bars</a></b>
#proc bars
  #clone: B
  lenfield: 3
  color: yellow
  stackfields: 2
  legendlabel: Lisa

//<b> draw bars for rob, stacking them above lisa and steve, using <a href="../doc/bars.html">proc bars</a></b>
#proc bars
  #clone: B
  lenfield: 4
  color: blue
  stackfields: 2 3
  legendlabel: Rob

//<b> draw bars for takisha, stacking them above the others, using <a href="../doc/bars.html">proc bars</a></b>
#proc bars
  #clone: B
  lenfield: 5
  color: green
  stackfields: 2 3 4
  legendlabel: Takisha

//<b> render legend using labels defined above <a href="../doc/legend.html">(proc legend)</a></b>
#proc legend
  location: min+0.3 max
  reverseorder: yes
  seglen: 0.3