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
|
<html><h1>bars9</h1><img src="bars9.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>
<pre><b>Usage: ploticus -png bars9.htm
// Source: Commerce department (values interpolated from another graph and
// may not be exact)
<hr></b>
//<b> use <a href="../doc/getdata.html">proc getdata</a> to specify 4 values</b>
#proc getdata
data: 98feb -12
98mar -13.5
98apr -14.2
98may -15.5
98jun -14.4
98jul -15
98aug -16.3
98sep -14.8
98oct -14.1
98nov -15
98dec -14.2
99jan -16.8
99feb -19.4
//<b> use <a href="../doc/areadef.html">proc areadef</a> to set up scaled plotting area</b>
#proc areadef
title: U.S. Trade Deficit
rectangle: 1 1 3 2
xscaletype: date yymmm
xrange: 98jan 99mar
yrange: -20 0
areacolor: gray(0.8)
//<b> use <a href="../doc/axis.html">proc axis</a> to do the X axis.. </b>
#proc xaxis
stubs: inc 1
stubformat: M
autoyears: 'yy
ticlen: 0 0
stubrange: 98feb 99feb
//<b> use <a href="../doc/axis.html">proc axis</a> to do the Y axis.. </b>
#proc yaxis
stubs: inc 5
ticlen: 0 0
grid: color=white
label: $ Billions
axisline: none
//<b> use <a href="../doc/bars.html">proc bars</a> to plot bars</b>
#proc bars
locfield: 1
lenfield: 2
color: red
barwidth: 0.1
crossover: 0
outline: no
//<b> use <a href="../doc/line.html">proc line</a> to draw a year-end line</b>
#proc line
linedetails: style=1
points: 15dec98(s) min(s) 15dec98(s) max(s)
|