3 histogram \- draw a histogram
15 .I minx,miny,maxx,maxy
31 reads numbers, one per line, from its standard input
32 and draws them as bars in a histogram.
39 A modulus operation on the value keeps the color index within the available range.
46 will exit when it reaches the end-of-file.
47 It will exit immediately if it is interrupted
50 menu option is chosen.
53 sets the initial window
65 displayed on a line above the histogram.
66 The last value read is displayed to the right of the title.
76 hoc -e 'for(i=0.0;i<20*PI;i=i+0.1) print (10+10*sin(i)), "\\n"'|
77 histogram -t 'sin(t), 0 ≤ t ≤ 20π' -v 20 -h
80 Show the Dow Jones adjusted daily closing price back to January 1, 2000:
83 site=http://ichart.finance.yahoo.com
84 hget $site'/table.csv?s=^DJI&a=00&b=1&c=2000' |
85 awk -F, '{print $NF}' | histogram -t DJI -v 15000 -h
88 .B /sys/src/cmd/histogram.c