BAR-GRAPH PLOTTER for Sinclair ZX-80
by Peter Collingridge
from Your Computer, June/July 1981

THE PROGRAM draws simple bar graphs but with a difference - the bars are
drawn vertically, not horizontally as with other programs.

The program can easily be adapted and built on although the display takes a
reasonably large amount of memory space. Because each line on the screen
contains 32 characters, the program is ideal for drawing graphs over a
period of one month, i.e. temperature or rainfall.

When run, the computer asks for 31 numbers, one at a time and numbers each
one so that the operator can see easily what he is doing. The numbers are
then stored in an array. The input values are the "heights" of each bar.

The program as shown will print up to a maximum of 15 but higher values
than this will not affect the program.

Line 100 prints a space at the beginning of every line and can be replaced
by any other character. Lines 120-140 compare each element to a number from
15 down to one and then print the required symbol. @ represents shift A.

Lines 170-190 draw a base to the graph. After inputting all 31 values, the
program takes about 10 seconds to draw the graph.

[A bug appeared in the printed listing in line 140, which should print a
space and not shift-A]
