Contact us Heritage collections Image license terms
HOME ACL Associates Technology Literature Applications Society Software revisited
Further reading □ OverviewNo.1No.2No.3No.4No.5No.8No.9No.11No.12No.13No.14No.15No.17No.19No.21No.22No.23No.24No.25No.26No.27No.28No.29No.30No.31No.32No.33No.37No.38No.39No.40No.41No.43No.44No.45No.46No.47No.48No.49No.50No.51No.52
ACD C&A INF CCD CISD Archives Contact us Heritage archives Image license terms

Search

   
ACLLiteratureProgress ReportsSPROGS Papers
ACLLiteratureProgress ReportsSPROGS Papers
ACL ACD C&A INF CCD CISD Archives
Further reading

Overview
No.1
No.2
No.3
No.4
No.5
No.8
No.9
No.11
No.12
No.13
No.14
No.15
No.17
No.19
No.21
No.22
No.23
No.24
No.25
No.26
No.27
No.28
No.29
No.30
No.31
No.32
No.33
No.37
No.38
No.39
No.40
No.41
No.43
No.44
No.45
No.46
No.47
No.48
No.49
No.50
No.51
No.52

SPROGS Paper No 41: A proposed graph plotting suite for SPROGS

A C Dennis

February 11 1974

INTRODUCTION

At present, graph plotting in SPROGS entails using SCALA, GRATA, etc. The proposed system tries to take the graft out of graphing and simplify the user's task.

GRAPH PLOTTING

The package may be thought to be at 3 1evels of user control. Level 1 draws the graph, etc, with no options for the user. Level 2 draws the graph, with options, but the user has no control over the scales of the axes, and level 3 draws the graph, with options, and the user must specify the axes scales.

1. GRAPH1

A basic graph plotting routines with no options for the user. It draws the axes, ticking, scales, title and co-ordinates. The co-ordinates are plotted as a continuous graph. Output is to SD4020 hardcopy only (?).

The arguments are:

XAR     array of X co-ordinates
YAR     array of Y co-ordinates
CORDNO  Number of co-ordinates (must be positive)
COUNT   Number of characters in TITLE
TITLE   Hollerith argument of COUNT characters. 

In more detail this means:

(a) Call SDHARD to fix the region.

(b) Draws X and Y axes with VEC (100,100,980,100) and VEC (100,100,100,980).

(c) MAX and MINX and Y ordinates found and axes scaled accordingly. The scaling is done to the following format:

F mode in the range ±0.0001 to ±100000.
E mode if outside this range

(d) Ten major divisions and minor divisions (ticking) per axis, drawn inside the graph area. Major divisions are 16 rasters long and minor divisions 8 rasters.

(e) Title drawn at the top of the graph, but outside the area of the graph, ie SETXY (400,990).

(f) Co-ordinates plotted (RGLIM forced to give co-ordinate conversion) and continuous graph drawn. Frame advance issued.

2. GRAPH2

GRAPH2 differs from GRAPH1 in using the current region selected by the user and, consequently, the user also selects the output medium. The axes are drawn on the boundary of the region and the exterior visibility is forced to allow the printing of the scales on the outside of the region. Again, XMAX/MIN, IMAX/MIN are found and RGLIM forced to allow conversion and plotting. Three further arguments are added to those already mentioned in GRAPH1. These are:

GRATIC = 0.0   -   No graticules or ticking
GRATIC = 1.0   -   Ticking with major and minor divisions
GRATIC = 2.0   -   Ticking with major divisions only
GRATIC = 3.0   -   Major graticule markings only
GRATIC = 4.0   -   Major and minor graticule markings. 
FORM   = 0.0   -   Scales printed as in 1(c) 
FORM   = 1.0   -   Scales printed in I mode
PLOT   = 1-64  -   The character specified by the SPROGS number is plotted
PLOT   = 0     -   The plotting is a continuous graph
PLOT   = ANAME(filename) used in conjunction with a negative CORDNO argument.   
                         Allows the transfer of basic filename (GRAPH 4 & 5) 

3. GRAPH3

As GRAPH2, but the axes are fixed by the user. RGLIM is unchanged and no co-ordinate conversion takes place.

4. GRAPH4

As GRAPH2. However, argument CORDNO is negative and no co-ordinate plotting takes place. The resulting 'background' graph is saved in a basic file named in the PLOT argument. f XMAX=XMIN=0 or YMAX=YMIN=0, then the relevant axis is not drawn.

5. GRAPH5

As GRAPH4, but the axes are fixed by the user (as in GRAPH3).

6. GRAPH6

GRAPH6 draws the Y axis only. MAX and MIN Y are found and the axis is scaled accordingly. All normal options apply.

7. GRAPH7

As GRAPH6, but draws the X axis only.

CONCLUSION

In terms of viability, GRAPH2 to GRAPH5 would seem to be the routines to concentrate on at present, with GRAPH1, GRAPH6 and GRAPH7, and possibly log scales, a smoothing routine and multiple graphs as further extensions.

⇑ Top of page
© Chilton Computing and UKRI Science and Technology Facilities Council webmaster@chilton-computing.org.uk
Our thanks to UKRI Science and Technology Facilities Council for hosting this site