Home » CEEFAX disks » telesoftware12.adl » 04-02-89/UniPlot
04-02-89/UniPlot
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » CEEFAX disks » telesoftware12.adl |
Filename: | 04-02-89/UniPlot |
Read OK: | ✔ |
File size: | 0C7C bytes |
Load address: | 1B00 |
Exec address: | FFFF8023 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- CEEFAX disks » telesoftware12.adl » 04-02-89/UniPlot
- CEEFAX disks » telesoftware8.adl » 05-08-88/UNIPLOT
File contents
0REM --------------------------------------- 1REM ! UNIPLOT - (c) Andrew J. Beavil 1985 ! 2REM --------------------------------------- 3ON ERROR PROCerror:GOTO L 5MODE0 10GOSUB 1620:REM SET UP GRAPH CONSTANTS 20REM 30REM i) Setup scale constants 40REM ii) Draw scale PROCscale( pen colour 0 - 3 ) 50REM iii) Draw graph PROCplot( pen colour 0 - 3 , " EQUATION " ) 60REM Simply write equation in quotes in the form y= ... X 70REM Leave out the "y=" . X must be in capitals. 80REM 90REM***************** Graph drawing proc's go here ************************ 100REM 200PROCscale(1) 230L=990:PROCplot(1,"X*SIN(1/X)") 990END 1000REM 1010REM*********************************************************************** 1020REM 1030DEF PROCplot(pen,equ$) 1040y2=2 1050FOR X=Xsmin2 TO Xsmax STEP Srx/Prx 1060Y=FNy(EVAL(equ$)) 1070IF Y>Ytmax OR Y<Ytmin THEN y1=FALSE:y2=2 ELSE y1=TRUE:y2=y2-1 1080IF y1=FALSE THEN P=0:Y=Ytmin 1090IFy2>0 P=0 ELSE P=pen 1100x1=FNx(X) 1110PROCdraw(x1,Y,P) 1120NEXT X:P=0:PROCdraw(x1,Y,P) 1130ENDPROC 1140REM 1150REM*********************************************************************** 1160REM 1170DEF FNx(X) 1180=(Prx/Srx)*X+X0 1190REM 1200REM*********************************************************************** 1210REM 1220DEF FNy(Y) 1230=(Pry/Sry)*Y+Y0 1240REM 1250REM*********************************************************************** 1260REM 1270DEF PROCscale(pen) 1271IF Y0>Ytmax OR Y0<Ytmin THEN Y2=Ytmin ELSE Y2=Y0 1272IF X0>Xtmax OR X0<Xtmin THEN X2=Xtmin ELSE X2=X0 1280X=Xtmin:Y=Y2:P=0:PROCdraw(X,Y,P) 1290X=Xtmax:P=pen:PROCdraw(X,Y,P) 1300X=X2:Y=Ytmin:P=0:PROCdraw(X,Y,P) 1310Y=Ytmax:P=pen:PROCdraw(X,Y,P) 1320FOR X=Xsmax TO Xsmin STEP -1*stx 1330x1=FNx(X):Y=Y2:P=0 1340PROCdraw(x1,Y,P):IF X=0 THEN P=0 ELSE P=pen 1350Y=Y2-xsl:PROCdraw(x1,Y,P) 1360NEXT X 1370FOR Y=Ysmin TO Ysmax STEP sty 1380y1=FNy(Y):X=X2:P=0 1390PROCdraw(X,y1,P):IF Y=0 THEN P=0 ELSE P=pen 1400X=X2-ysl:PROCdraw(X,y1,P) 1410NEXT Y 1420ENDPROC 1430REM 1440REM********************************************************************** 1450REM 1460DEF PROCerror 1470IF ERR<>18 AND ERR<>20 THEN 1520 1480IF ERL<>1220 THEN 1520 1490Xsmin2=X+(Srx/Prx) 1500PROCplot(pen,equ$) 1510ENDPROC 1520CLS:PRINT '"Apologies,there is a programmer's error" 1530@%=0:PRINT'"at line "ERL" It is:-"' 1540REPORT 1550PRINT ''"Please record how you 'crashed' the" 1560PRINT "program and contact the author." 1570VDU26:*FX220,27 1580ON ERROR OFF:END 1590REM 1600REM********************* SYSTEM GRAPH CONSTANTS ************************** 1610REM 1620Xtmin=15:REM Minimum X plotter travel ( > xsl ) 1630Xtmax=1280:REM Maximum X plotter travel 1640Xsmax=0.4:REM Maximum X SCALE value 1650Xsmin=-0.4:REM Minimum X SCALE value 1660stx=0.05:REM X Scale bar step +ve 1670xsl=15:REM Length of X scale bars 1680Ytmin=15:REM Minimum Y plotter travel ( > ysl ) 1690Ytmax=1023:REM Maximum Y plotter travel 1700Ysmax=0.3:REM Maximum Y SCALE value 1710Ysmin=-0.3:REM Minimum Y SCALE value 1720sty=0.05:REM Y Scale bar step +ve 1730ysl=15:REM Length of y scale bars 1740Pry=Ytmax-Ytmin 1750Sry=Ysmax-Ysmin 1760Y0=Ytmax-Pry*Ysmax/Sry 1770Prx=Xtmax-Xtmin 1780Srx=Xsmax-Xsmin 1790X0=Xtmax-Prx*Xsmax/Srx 1800PD=&1F00 1810Xsmin2=Xsmin 1820RETURN 1830REM 1840REM********************************************************************** 1850REM 1860DEF PROCdraw(X,Y,P) 1870IF P=0 MOVE X,Y ELSE DRAW X,Y 1890ENDPROC 1900REM 1910REM For use with the plotter, replace line 5 with 5 MODE4 1920REM add a line 1880 CALL PD,X,Y,P 1930REM set up suitable graph constants. 1940REM set PAGE=&2800 and use GOPLOT to initialise PLCDE11 1950REM then load this program still at &2800. 1960REM
.� --------------------------------------- .� ! UNIPLOT - (c) Andrew J. Beavil 1985 ! .� --------------------------------------- � � �error:� L �0 #� �DTF:� SET UP GRAPH CONSTANTS � � i) Setup scale constants (3� ii) Draw scale PROCscale( pen colour 0 - 3 ) 2B� iii) Draw graph PROCplot( pen colour 0 - 3 , " EQUATION " ) <;� Simply write equation in quotes in the form y= ... X F5� Leave out the "y=" . X must be in capitals. P� ZL�***************** Graph drawing proc's go here ************************ d� � �scale(1) � L=990:�plot(1,"X*SIN(1/X)") �� �� �L�*********************************************************************** �� � �plot(pen,equ$) y2=2 � X=Xsmin2 � Xsmax � Srx/Prx $Y=�y(�(equ$)) .2� Y>Ytmax � Y<Ytmin � y1=�:y2=2 � y1=�:y2=y2-1 8� y1=� � P=0:Y=Ytmin B�y2>0 P=0 � P=pen Lx1=�x(X) V�draw(x1,Y,P) `� X:P=0:�draw(x1,Y,P) j� t� ~L�*********************************************************************** �� �� �x(X) �=(Prx/Srx)*X+X0 �� �L�*********************************************************************** �� �� �y(Y) �=(Pry/Sry)*Y+Y0 �� �L�*********************************************************************** �� �� �scale(pen) �,� Y0>Ytmax � Y0<Ytmin � Y2=Ytmin � Y2=Y0 �-� X0>Xtmax � X0<Xtmin � X2=Xtmin � X2=X0 !X=Xtmin:Y=Y2:P=0:�draw(X,Y,P) X=Xtmax:P=pen:�draw(X,Y,P) !X=X2:Y=Ytmin:P=0:�draw(X,Y,P) Y=Ytmax:P=pen:�draw(X,Y,P) (� X=Xsmax � Xsmin � -1*stx 2x1=�x(X):Y=Y2:P=0 <%�draw(x1,Y,P):� X=0 � P=0 � P=pen FY=Y2-xsl:�draw(x1,Y,P) P� X Z� Y=Ysmin � Ysmax � sty dy1=�y(Y):X=X2:P=0 n%�draw(X,y1,P):� Y=0 � P=0 � P=pen xX=X2-ysl:�draw(X,y1,P) �� Y �� �� �K�********************************************************************** �� �� �error �� �<>18 � �<>20 � �dpE �� �<>1220 � �dpE �Xsmin2=X+(Srx/Prx) ��plot(pen,equ$) �� �2�:� '"Apologies,there is a programmer's error" �!@%=0:�'"at line "�" It is:-"' � .� ''"Please record how you 'crashed' the" '� "program and contact the author." "�26:*FX220,27 ,� � �:� 6� @L�********************* SYSTEM GRAPH CONSTANTS ************************** J� T1Xtmin=15:� Minimum X plotter travel ( > xsl ) ^)Xtmax=1280:� Maximum X plotter travel h%Xsmax=0.4:� Maximum X SCALE value r&Xsmin=-0.4:� Minimum X SCALE value |#stx=0.05:� X Scale bar step +ve �#xsl=15:� Length of X scale bars �2Ytmin=15:� Minimum Y plotter travel ( > ysl ) �)Ytmax=1023:� Maximum Y plotter travel �%Ysmax=0.3:� Maximum Y SCALE value �&Ysmin=-0.3:� Minimum Y SCALE value �#sty=0.05:� Y Scale bar step +ve �#ysl=15:� Length of y scale bars �Pry=Ytmax-Ytmin �Sry=Ysmax-Ysmin �Y0=Ytmax-Pry*Ysmax/Sry �Prx=Xtmax-Xtmin �Srx=Xsmax-Xsmin �X0=Xtmax-Prx*Xsmax/Srx PD=&1F00 Xsmin2=Xsmin � &� 0K�********************************************************************** :� D� �draw(X,Y,P) N� P=0 � X,Y � � X,Y b� l� v;� For use with the plotter, replace line 5 with 5 MODE4 �#� add a line 1880 CALL PD,X,Y,P �&� set up suitable graph constants. �9� set PAGE=&2800 and use GOPLOT to initialise PLCDE11 �,� then load this program still at &2800. �� �
00000000 0d 00 00 2e f4 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d |..... ---------| 00000010 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00000020 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 00 |--------------..| 00000030 01 2e f4 20 20 21 20 55 4e 49 50 4c 4f 54 20 2d |... ! UNIPLOT -| 00000040 20 28 63 29 20 41 6e 64 72 65 77 20 4a 2e 20 42 | (c) Andrew J. B| 00000050 65 61 76 69 6c 20 31 39 38 35 20 21 0d 00 02 2e |eavil 1985 !....| 00000060 f4 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |. -------------| 00000070 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00000080 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 00 03 12 ee 20 |----------..... | 00000090 85 20 f2 65 72 72 6f 72 3a e5 20 4c 0d 00 05 06 |. .error:. L....| 000000a0 eb 30 0d 00 0a 23 e4 20 8d 44 54 46 3a f4 20 53 |.0...#. .DTF:. S| 000000b0 45 54 20 55 50 20 47 52 41 50 48 20 43 4f 4e 53 |ET UP GRAPH CONS| 000000c0 54 41 4e 54 53 0d 00 14 05 f4 0d 00 1e 1e f4 20 |TANTS.......... | 000000d0 69 29 20 53 65 74 75 70 20 73 63 61 6c 65 20 63 |i) Setup scale c| 000000e0 6f 6e 73 74 61 6e 74 73 0d 00 28 33 f4 20 69 69 |onstants..(3. ii| 000000f0 29 20 44 72 61 77 20 73 63 61 6c 65 20 20 50 52 |) Draw scale PR| 00000100 4f 43 73 63 61 6c 65 28 20 70 65 6e 20 63 6f 6c |OCscale( pen col| 00000110 6f 75 72 20 30 20 2d 20 33 20 29 0d 00 32 42 f4 |our 0 - 3 )..2B.| 00000120 20 69 69 69 29 20 44 72 61 77 20 67 72 61 70 68 | iii) Draw graph| 00000130 20 20 50 52 4f 43 70 6c 6f 74 28 20 70 65 6e 20 | PROCplot( pen | 00000140 63 6f 6c 6f 75 72 20 30 20 2d 20 33 20 2c 20 22 |colour 0 - 3 , "| 00000150 20 45 51 55 41 54 49 4f 4e 20 22 20 29 0d 00 3c | EQUATION " )..<| 00000160 3b f4 20 20 53 69 6d 70 6c 79 20 77 72 69 74 65 |;. Simply write| 00000170 20 65 71 75 61 74 69 6f 6e 20 69 6e 20 71 75 6f | equation in quo| 00000180 74 65 73 20 69 6e 20 74 68 65 20 66 6f 72 6d 20 |tes in the form | 00000190 79 3d 20 2e 2e 2e 20 58 0d 00 46 35 f4 20 20 4c |y= ... X..F5. L| 000001a0 65 61 76 65 20 6f 75 74 20 74 68 65 20 20 22 79 |eave out the "y| 000001b0 3d 22 20 2e 20 20 20 58 20 6d 75 73 74 20 62 65 |=" . X must be| 000001c0 20 69 6e 20 63 61 70 69 74 61 6c 73 2e 0d 00 50 | in capitals...P| 000001d0 05 f4 0d 00 5a 4c f4 2a 2a 2a 2a 2a 2a 2a 2a 2a |....ZL.*********| 000001e0 2a 2a 2a 2a 2a 2a 2a 2a 20 47 72 61 70 68 20 64 |******** Graph d| 000001f0 72 61 77 69 6e 67 20 70 72 6f 63 27 73 20 67 6f |rawing proc's go| 00000200 20 68 65 72 65 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a | here **********| 00000210 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 00 |**************..| 00000220 64 05 f4 0d 00 c8 0d f2 73 63 61 6c 65 28 31 29 |d.......scale(1)| 00000230 0d 00 e6 20 4c 3d 39 39 30 3a f2 70 6c 6f 74 28 |... L=990:.plot(| 00000240 31 2c 22 58 2a 53 49 4e 28 31 2f 58 29 22 29 20 |1,"X*SIN(1/X)") | 00000250 0d 03 de 05 e0 0d 03 e8 05 f4 0d 03 f2 4c f4 2a |.............L.*| 00000260 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000002a0 2a 2a 2a 2a 2a 2a 0d 03 fc 05 f4 0d 04 06 15 dd |******..........| 000002b0 20 f2 70 6c 6f 74 28 70 65 6e 2c 65 71 75 24 29 | .plot(pen,equ$)| 000002c0 0d 04 10 08 79 32 3d 32 0d 04 1a 20 e3 20 58 3d |....y2=2... . X=| 000002d0 58 73 6d 69 6e 32 20 b8 20 58 73 6d 61 78 20 88 |Xsmin2 . Xsmax .| 000002e0 20 53 72 78 2f 50 72 78 0d 04 24 12 59 3d a4 79 | Srx/Prx..$.Y=.y| 000002f0 28 a0 28 65 71 75 24 29 29 20 0d 04 2e 32 e7 20 |(.(equ$)) ...2. | 00000300 59 3e 59 74 6d 61 78 20 84 20 59 3c 59 74 6d 69 |Y>Ytmax . Y<Ytmi| 00000310 6e 20 8c 20 79 31 3d a3 3a 79 32 3d 32 20 8b 20 |n . y1=.:y2=2 . | 00000320 79 31 3d b9 3a 79 32 3d 79 32 2d 31 0d 04 38 18 |y1=.:y2=y2-1..8.| 00000330 e7 20 79 31 3d a3 20 8c 20 50 3d 30 3a 59 3d 59 |. y1=. . P=0:Y=Y| 00000340 74 6d 69 6e 0d 04 42 15 e7 79 32 3e 30 20 50 3d |tmin..B..y2>0 P=| 00000350 30 20 8b 20 50 3d 70 65 6e 0d 04 4c 0c 78 31 3d |0 . P=pen..L.x1=| 00000360 a4 78 28 58 29 0d 04 56 11 f2 64 72 61 77 28 78 |.x(X)..V..draw(x| 00000370 31 2c 59 2c 50 29 0d 04 60 19 ed 20 58 3a 50 3d |1,Y,P)..`.. X:P=| 00000380 30 3a f2 64 72 61 77 28 78 31 2c 59 2c 50 29 0d |0:.draw(x1,Y,P).| 00000390 04 6a 05 e1 0d 04 74 05 f4 0d 04 7e 4c f4 2a 2a |.j....t....~L.**| 000003a0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000003e0 2a 2a 2a 2a 2a 0d 04 88 05 f4 0d 04 92 0b dd 20 |*****.......... | 000003f0 a4 78 28 58 29 0d 04 9c 13 3d 28 50 72 78 2f 53 |.x(X)....=(Prx/S| 00000400 72 78 29 2a 58 2b 58 30 0d 04 a6 05 f4 0d 04 b0 |rx)*X+X0........| 00000410 4c f4 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |L.**************| 00000420 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000450 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 04 ba 05 f4 0d 04 |*********.......| 00000460 c4 0b dd 20 a4 79 28 59 29 0d 04 ce 13 3d 28 50 |... .y(Y)....=(P| 00000470 72 79 2f 53 72 79 29 2a 59 2b 59 30 0d 04 d8 05 |ry/Sry)*Y+Y0....| 00000480 f4 0d 04 e2 4c f4 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |....L.**********| 00000490 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000004c0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 04 ec |*************...| 000004d0 05 f4 0d 04 f6 11 dd 20 f2 73 63 61 6c 65 28 70 |....... .scale(p| 000004e0 65 6e 29 0d 04 f7 2c e7 20 59 30 3e 59 74 6d 61 |en)...,. Y0>Ytma| 000004f0 78 20 84 20 59 30 3c 59 74 6d 69 6e 20 8c 20 59 |x . Y0<Ytmin . Y| 00000500 32 3d 59 74 6d 69 6e 20 8b 20 59 32 3d 59 30 0d |2=Ytmin . Y2=Y0.| 00000510 04 f8 2d e7 20 58 30 3e 58 74 6d 61 78 20 84 20 |..-. X0>Xtmax . | 00000520 58 30 3c 58 74 6d 69 6e 20 8c 20 58 32 3d 58 74 |X0<Xtmin . X2=Xt| 00000530 6d 69 6e 20 8b 20 58 32 3d 58 30 20 0d 05 00 21 |min . X2=X0 ...!| 00000540 58 3d 58 74 6d 69 6e 3a 59 3d 59 32 3a 50 3d 30 |X=Xtmin:Y=Y2:P=0| 00000550 3a f2 64 72 61 77 28 58 2c 59 2c 50 29 0d 05 0a |:.draw(X,Y,P)...| 00000560 1e 58 3d 58 74 6d 61 78 3a 50 3d 70 65 6e 3a f2 |.X=Xtmax:P=pen:.| 00000570 64 72 61 77 28 58 2c 59 2c 50 29 0d 05 14 21 58 |draw(X,Y,P)...!X| 00000580 3d 58 32 3a 59 3d 59 74 6d 69 6e 3a 50 3d 30 3a |=X2:Y=Ytmin:P=0:| 00000590 f2 64 72 61 77 28 58 2c 59 2c 50 29 0d 05 1e 1e |.draw(X,Y,P)....| 000005a0 59 3d 59 74 6d 61 78 3a 50 3d 70 65 6e 3a f2 64 |Y=Ytmax:P=pen:.d| 000005b0 72 61 77 28 58 2c 59 2c 50 29 0d 05 28 1e e3 20 |raw(X,Y,P)..(.. | 000005c0 58 3d 58 73 6d 61 78 20 b8 20 58 73 6d 69 6e 20 |X=Xsmax . Xsmin | 000005d0 88 20 2d 31 2a 73 74 78 0d 05 32 15 78 31 3d a4 |. -1*stx..2.x1=.| 000005e0 78 28 58 29 3a 59 3d 59 32 3a 50 3d 30 0d 05 3c |x(X):Y=Y2:P=0..<| 000005f0 25 f2 64 72 61 77 28 78 31 2c 59 2c 50 29 3a e7 |%.draw(x1,Y,P):.| 00000600 20 58 3d 30 20 8c 20 50 3d 30 20 8b 20 50 3d 70 | X=0 . P=0 . P=p| 00000610 65 6e 0d 05 46 1a 59 3d 59 32 2d 78 73 6c 3a f2 |en..F.Y=Y2-xsl:.| 00000620 64 72 61 77 28 78 31 2c 59 2c 50 29 0d 05 50 07 |draw(x1,Y,P)..P.| 00000630 ed 20 58 0d 05 5a 1b e3 20 59 3d 59 73 6d 69 6e |. X..Z.. Y=Ysmin| 00000640 20 b8 20 59 73 6d 61 78 20 88 20 73 74 79 0d 05 | . Ysmax . sty..| 00000650 64 15 79 31 3d a4 79 28 59 29 3a 58 3d 58 32 3a |d.y1=.y(Y):X=X2:| 00000660 50 3d 30 0d 05 6e 25 f2 64 72 61 77 28 58 2c 79 |P=0..n%.draw(X,y| 00000670 31 2c 50 29 3a e7 20 59 3d 30 20 8c 20 50 3d 30 |1,P):. Y=0 . P=0| 00000680 20 8b 20 50 3d 70 65 6e 0d 05 78 1a 58 3d 58 32 | . P=pen..x.X=X2| 00000690 2d 79 73 6c 3a f2 64 72 61 77 28 58 2c 79 31 2c |-ysl:.draw(X,y1,| 000006a0 50 29 0d 05 82 07 ed 20 59 0d 05 8c 05 e1 0d 05 |P)..... Y.......| 000006b0 96 05 f4 0d 05 a0 4b f4 2a 2a 2a 2a 2a 2a 2a 2a |......K.********| 000006c0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000006f0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 05 |**************..| 00000700 aa 05 f4 0d 05 b4 0c dd 20 f2 65 72 72 6f 72 0d |........ .error.| 00000710 05 be 1a e7 20 9f 3c 3e 31 38 20 80 20 9f 3c 3e |.... .<>18 . .<>| 00000720 32 30 20 8c 20 8d 64 70 45 0d 05 c8 16 e7 20 9e |20 . .dpE..... .| 00000730 3c 3e 31 32 32 30 20 8c 20 8d 64 70 45 20 20 0d |<>1220 . .dpE .| 00000740 05 d2 16 58 73 6d 69 6e 32 3d 58 2b 28 53 72 78 |...Xsmin2=X+(Srx| 00000750 2f 50 72 78 29 0d 05 dc 13 f2 70 6c 6f 74 28 70 |/Prx).....plot(p| 00000760 65 6e 2c 65 71 75 24 29 0d 05 e6 05 e1 0d 05 f0 |en,equ$)........| 00000770 32 db 3a f1 20 27 22 41 70 6f 6c 6f 67 69 65 73 |2.:. '"Apologies| 00000780 2c 74 68 65 72 65 20 69 73 20 61 20 70 72 6f 67 |,there is a prog| 00000790 72 61 6d 6d 65 72 27 73 20 65 72 72 6f 72 22 0d |rammer's error".| 000007a0 05 fa 21 40 25 3d 30 3a f1 27 22 61 74 20 6c 69 |..!@%=0:.'"at li| 000007b0 6e 65 20 22 9e 22 20 49 74 20 69 73 3a 2d 22 27 |ne "." It is:-"'| 000007c0 0d 06 04 05 f6 0d 06 0e 2e f1 20 27 27 22 50 6c |.......... ''"Pl| 000007d0 65 61 73 65 20 72 65 63 6f 72 64 20 68 6f 77 20 |ease record how | 000007e0 79 6f 75 20 27 63 72 61 73 68 65 64 27 20 74 68 |you 'crashed' th| 000007f0 65 22 20 0d 06 18 27 f1 20 22 70 72 6f 67 72 61 |e" ...'. "progra| 00000800 6d 20 61 6e 64 20 63 6f 6e 74 61 63 74 20 74 68 |m and contact th| 00000810 65 20 61 75 74 68 6f 72 2e 22 0d 06 22 11 ef 32 |e author.".."..2| 00000820 36 3a 2a 46 58 32 32 30 2c 32 37 0d 06 2c 0b ee |6:*FX220,27..,..| 00000830 20 85 20 87 3a e0 0d 06 36 05 f4 0d 06 40 4c f4 | . .:...6....@L.| 00000840 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| 00000850 2a 2a 2a 2a 2a 20 53 59 53 54 45 4d 20 47 52 41 |***** SYSTEM GRA| 00000860 50 48 20 43 4f 4e 53 54 41 4e 54 53 20 2a 2a 2a |PH CONSTANTS ***| 00000870 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| 00000880 2a 2a 2a 2a 2a 2a 2a 0d 06 4a 05 f4 0d 06 54 31 |*******..J....T1| 00000890 58 74 6d 69 6e 3d 31 35 3a f4 20 4d 69 6e 69 6d |Xtmin=15:. Minim| 000008a0 75 6d 20 58 20 70 6c 6f 74 74 65 72 20 74 72 61 |um X plotter tra| 000008b0 76 65 6c 20 28 20 3e 20 78 73 6c 20 29 0d 06 5e |vel ( > xsl )..^| 000008c0 29 58 74 6d 61 78 3d 31 32 38 30 3a f4 20 4d 61 |)Xtmax=1280:. Ma| 000008d0 78 69 6d 75 6d 20 58 20 70 6c 6f 74 74 65 72 20 |ximum X plotter | 000008e0 74 72 61 76 65 6c 0d 06 68 25 58 73 6d 61 78 3d |travel..h%Xsmax=| 000008f0 30 2e 34 3a f4 20 4d 61 78 69 6d 75 6d 20 58 20 |0.4:. Maximum X | 00000900 53 43 41 4c 45 20 76 61 6c 75 65 0d 06 72 26 58 |SCALE value..r&X| 00000910 73 6d 69 6e 3d 2d 30 2e 34 3a f4 20 4d 69 6e 69 |smin=-0.4:. Mini| 00000920 6d 75 6d 20 58 20 53 43 41 4c 45 20 76 61 6c 75 |mum X SCALE valu| 00000930 65 0d 06 7c 23 73 74 78 3d 30 2e 30 35 3a f4 20 |e..|#stx=0.05:. | 00000940 58 20 53 63 61 6c 65 20 62 61 72 20 73 74 65 70 |X Scale bar step| 00000950 20 2b 76 65 0d 06 86 23 78 73 6c 3d 31 35 3a f4 | +ve...#xsl=15:.| 00000960 20 4c 65 6e 67 74 68 20 6f 66 20 58 20 73 63 61 | Length of X sca| 00000970 6c 65 20 62 61 72 73 0d 06 90 32 59 74 6d 69 6e |le bars...2Ytmin| 00000980 3d 31 35 3a f4 20 4d 69 6e 69 6d 75 6d 20 59 20 |=15:. Minimum Y | 00000990 70 6c 6f 74 74 65 72 20 74 72 61 76 65 6c 20 28 |plotter travel (| 000009a0 20 3e 20 79 73 6c 20 29 20 0d 06 9a 29 59 74 6d | > ysl ) ...)Ytm| 000009b0 61 78 3d 31 30 32 33 3a f4 20 4d 61 78 69 6d 75 |ax=1023:. Maximu| 000009c0 6d 20 59 20 70 6c 6f 74 74 65 72 20 74 72 61 76 |m Y plotter trav| 000009d0 65 6c 0d 06 a4 25 59 73 6d 61 78 3d 30 2e 33 3a |el...%Ysmax=0.3:| 000009e0 f4 20 4d 61 78 69 6d 75 6d 20 59 20 53 43 41 4c |. Maximum Y SCAL| 000009f0 45 20 76 61 6c 75 65 0d 06 ae 26 59 73 6d 69 6e |E value...&Ysmin| 00000a00 3d 2d 30 2e 33 3a f4 20 4d 69 6e 69 6d 75 6d 20 |=-0.3:. Minimum | 00000a10 59 20 53 43 41 4c 45 20 76 61 6c 75 65 0d 06 b8 |Y SCALE value...| 00000a20 23 73 74 79 3d 30 2e 30 35 3a f4 20 59 20 53 63 |#sty=0.05:. Y Sc| 00000a30 61 6c 65 20 62 61 72 20 73 74 65 70 20 2b 76 65 |ale bar step +ve| 00000a40 0d 06 c2 23 79 73 6c 3d 31 35 3a f4 20 4c 65 6e |...#ysl=15:. Len| 00000a50 67 74 68 20 6f 66 20 79 20 73 63 61 6c 65 20 62 |gth of y scale b| 00000a60 61 72 73 0d 06 cc 13 50 72 79 3d 59 74 6d 61 78 |ars....Pry=Ytmax| 00000a70 2d 59 74 6d 69 6e 0d 06 d6 13 53 72 79 3d 59 73 |-Ytmin....Sry=Ys| 00000a80 6d 61 78 2d 59 73 6d 69 6e 0d 06 e0 1a 59 30 3d |max-Ysmin....Y0=| 00000a90 59 74 6d 61 78 2d 50 72 79 2a 59 73 6d 61 78 2f |Ytmax-Pry*Ysmax/| 00000aa0 53 72 79 0d 06 ea 13 50 72 78 3d 58 74 6d 61 78 |Sry....Prx=Xtmax| 00000ab0 2d 58 74 6d 69 6e 0d 06 f4 13 53 72 78 3d 58 73 |-Xtmin....Srx=Xs| 00000ac0 6d 61 78 2d 58 73 6d 69 6e 0d 06 fe 1a 58 30 3d |max-Xsmin....X0=| 00000ad0 58 74 6d 61 78 2d 50 72 78 2a 58 73 6d 61 78 2f |Xtmax-Prx*Xsmax/| 00000ae0 53 72 78 0d 07 08 0c 50 44 3d 26 31 46 30 30 0d |Srx....PD=&1F00.| 00000af0 07 12 10 58 73 6d 69 6e 32 3d 58 73 6d 69 6e 0d |...Xsmin2=Xsmin.| 00000b00 07 1c 05 f8 0d 07 26 05 f4 0d 07 30 4b f4 2a 2a |......&....0K.**| 00000b10 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000b50 2a 2a 2a 2a 0d 07 3a 05 f4 0d 07 44 12 dd 20 f2 |****..:....D.. .| 00000b60 64 72 61 77 28 58 2c 59 2c 50 29 0d 07 4e 17 e7 |draw(X,Y,P)..N..| 00000b70 20 50 3d 30 20 ec 20 58 2c 59 20 8b 20 df 20 58 | P=0 . X,Y . . X| 00000b80 2c 59 0d 07 62 05 e1 0d 07 6c 05 f4 0d 07 76 3b |,Y..b....l....v;| 00000b90 f4 20 46 6f 72 20 75 73 65 20 77 69 74 68 20 74 |. For use with t| 00000ba0 68 65 20 70 6c 6f 74 74 65 72 2c 20 72 65 70 6c |he plotter, repl| 00000bb0 61 63 65 20 6c 69 6e 65 20 35 20 77 69 74 68 20 |ace line 5 with | 00000bc0 35 20 4d 4f 44 45 34 0d 07 80 23 f4 20 61 64 64 |5 MODE4...#. add| 00000bd0 20 61 20 6c 69 6e 65 20 31 38 38 30 20 43 41 4c | a line 1880 CAL| 00000be0 4c 20 50 44 2c 58 2c 59 2c 50 0d 07 8a 26 f4 20 |L PD,X,Y,P...&. | 00000bf0 73 65 74 20 75 70 20 73 75 69 74 61 62 6c 65 20 |set up suitable | 00000c00 67 72 61 70 68 20 63 6f 6e 73 74 61 6e 74 73 2e |graph constants.| 00000c10 0d 07 94 39 f4 20 73 65 74 20 50 41 47 45 3d 26 |...9. set PAGE=&| 00000c20 32 38 30 30 20 61 6e 64 20 75 73 65 20 47 4f 50 |2800 and use GOP| 00000c30 4c 4f 54 20 74 6f 20 69 6e 69 74 69 61 6c 69 73 |LOT to initialis| 00000c40 65 20 50 4c 43 44 45 31 31 0d 07 9e 2c f4 20 74 |e PLCDE11...,. t| 00000c50 68 65 6e 20 6c 6f 61 64 20 74 68 69 73 20 70 72 |hen load this pr| 00000c60 6f 67 72 61 6d 20 73 74 69 6c 6c 20 61 74 20 26 |ogram still at &| 00000c70 32 38 30 30 2e 0d 07 a8 05 f4 0d ff |2800........| 00000c7c