--- title: "D-19 Point to Point Curve" id: 77372 type: "computer_media" slug: "d-19-point-to-point-curve" url: "http://localhost/computer_media/d-19-point-to-point-curve/" markdown_url: "http://localhost/computer_media/d-19-point-to-point-curve.md" published_at: "2026-11-15T18:39:00+00:00" modified_at: "2026-11-15T18:39:00+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/d-19-point-to-point-curve-1.png" excerpt: "Graphs twelve monthly sales figures as a point-to-point curve and prints it, with the figures, as one TS2040 printout." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Warren Fricke" slug: "warren-fricke" taxonomy: "indiv" url: "http://localhost/indiv/warren-fricke/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" media_type: "Program" programmers: - name: "Warren Fricke" slug: "warren-fricke" taxonomy: "indiv" url: "http://localhost/indiv/warren-fricke/" download_url: "https://archive.org/download/timex-sinclair-software-archive/D-19%20Point%20to%20Point%20Curve%20%281990%29%28Fricke%2C%20Warren%29%28TS2068%29%28US%29%28Program%29.zip" tsrun_member: "D-19 Point to Point Curve (1990)(Fricke, Warren)(TS2068)(US)(Program)/D-19 Point to Point Curve (1990)(Fricke, Warren)(TS2068)(US)(Program).tap" mediadate: "1990" images: - url: "http://localhost/wp-content/uploads/2026/11/d-19-point-to-point-curve-1.png" - url: "http://localhost/wp-content/uploads/2026/11/d-19-point-to-point-curve-2.png" article_media: - id: 23192 title: "Plotting Charts and Curves on the T/S 2040" type: "article" url: "http://localhost/article/plotting-charts-and-curves-on-the-t-s-2040/" related_content: - id: 77350 title: "C-63 Pie Chart" type: "computer_media" url: "http://localhost/computer_media/c-63-pie-chart/" media_type_tags: "Graphics" license: false --- # D-19 Point to Point Curve Turns twelve monthly sales figures into a point-to-point line graph. You type in the twelve dollar amounts; the program lists them with the highest and lowest month, dumps that screen to the TS2040 printer, then draws the curve against the months J to D, scaled to the highest month, and dumps it too, so the two screens print as one illustration. The article also printed D-17, the matching vertical bar chart, which differs only in lines 205 to 240; parts of those lines are unreadable on the scan, so only D-19 is offered here. Published in Sinc-Link September-October 1990 ([Plotting Charts and Curves on the T/S 2040](https://timexsinclair.com/article/plotting-charts-and-curves-on-the-t-s-2040/)). ## Source Code ``` 5 REM ** MODEL OF A POINT TO POINT CURVE 10 REM ** "D-19", 3-2-88, WF 30 DRAW 0,175: DRAW 255,0: DRAW 0,-175 40 PRINT AT 1,4;"** SALES of DO-DADS **";AT 3,1;"MONTH","DOLLARS" 50 DIM a$(30): DIM s(12) 60 FOR n=1 TO 12 70 INPUT "Enter sales, month No. ";(n);" ";s(n) 80 PRINT AT 4+n,3;n,s(n) 85 NEXT n 90 LET max=0 100 FOR n=1 TO 12 110 IF s(n)>max THEN LET max=s(n) 120 NEXT n 130 LET min=max 140 FOR n=1 TO 12 150 IF s(n)