README.md
Metabolic Unit
RGH Concord
NSW 2134
28 Jul 86
Dear Sheila and Roger,
I have been playing around with your (old) HVPLOT
library of subroutines. They came in very handy when I was
implementing the HP7475 plotter onto our system. During the
course of doing so, there were a number of additional
routines I wrote which might have wider applications. The
routines are mainly helpful for drawing scatter graphs.
There isn't enough of them to rate a library of their own
and I thought you might want to include them as an appendix
to the next edition of HVPLOT. On the other hand, you may
find them totally useless in which case you can ignore the
whole thing.
Enclosed you will find one RX01 formatted floppy
disk. The files are:
README.LST this text
PLTLIB.FOR source file
PLTLIB.LST compiler listing file
PLTLIB.OBJ library file
PLTLIB.RNO runoff source
PLTLIB.DOC document file
GRAPH.FOR graph program source
GRAPH.OBJ compiled file
GRAPH.SAV linked file
FILE.DAT data file (for GRAPH)
The runoff files are in a similar format to the
HVPLOT files except they are written for ordinary printers.
They also have included the indexing commands for the
various routines.
In the routine PPOINT I used the JUMP(x,y) and
DRAW(x,y) routines rather than POINT(x,y) for drawing a dot.
This is because POINT previously made the plotter (and
processor) hang and return an error code 1 - instruction not
recognized. I think it has something to do with the rewind
instruction in the routines PENDN and PENUP (but what about
in PLOFF?) and the fact I have the PL: device spooled under
TSX+. Using DRAW was easier than trying to sort that out.
On another ppoint, the various point styles were designed to
be a certain percent of the x axis and y axis range. Which
means, unless your axis are square, the point shapes are
going to look a bit funny.
The GRAPH program is just an example of how the
PLTLIB routines work. To use the program type
.RUN GRAPH
Please type in file name [dev:filnam.ext] > FILE
Please select point style [0-11] = 0
Output device? Plotter (H) or VT125 (V) H
Please select pen speed [38.1] = 38.
.
If there are no answers to point style or pen speed the
defaults are 0 and 38.1, respectively. The pen speed is
only asked if the plotter is selected. If you selected the
VT125 as your output device the program ask if you want
another copy so you can then output to the plotter without
processing the data again.
To link the routines to-gether I found that I needed
to R LINK and use the /G option. I couldn't see a way to do
this with a simpler KMON command.
Finally, I should describe my system so you know it
works on one configuration, at least!
CPU KDF11-BP (11/23+)
TT VT240, VT125
PL DLV11-F -> HP7475
OS RT11 v5.01c, TSX+ v6.01
COM F4