--- title: "Greyplot Improvement" type: "article" slug: "greyplot-improvement" url: "http://localhost/article/greyplot-improvement/" markdown_url: "http://localhost/article/greyplot-improvement.md" published_at: "2026-11-28T22:35:00+00:00" modified_at: "2026-11-28T22:35:00+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "(With a Note on Improvements) Tom Bent suggests the following improvement to the GREYPLOT routine in 1:1 & 1:1a. It results in things being speeded up considerably. Add the following lines: 215 LET Z=VAL A$ Change lines 220 & 240 to read: 220 LET Y=22+INT (20*Z+.5) 240 LET Y=22+INT (20*Z*Z+.5) Since VAL (a notorious slow-poke)…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Tips and tricks" slug: "tips-and-tricks" taxonomy: "post_tag" url: "http://localhost/tag/tips-and-tricks/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Fred Nachbaur" slug: "fred-nachbaur" taxonomy: "indiv" url: "http://localhost/indiv/fred-nachbaur/" - name: "Tom Bent" slug: "tom-bent" taxonomy: "indiv" url: "http://localhost/indiv/tom-bent/" publication: "SyncWare News" publication_r: id: 10245 title: "SyncWare News" type: "periodical" url: "http://localhost/periodical/syncware-news/" authors: "Fred Nachbaur" authors_r: - name: "Fred Nachbaur" slug: "fred-nachbaur" taxonomy: "indiv" url: "http://localhost/indiv/fred-nachbaur/" volume: "1" issue: "2" issues_articles: - id: 82248 title: "SyncWare News v1 n2" type: "issue" url: "http://localhost/issue/syncware-news-v1-n2/" pages: "30" pubdate: "July/August 1983" archive_link: false volumeissue: "v1n2" --- # Greyplot Improvement ### (With a Note on Improvements) Tom Bent suggests the following improvement to the GREYPLOT routine in 1:1 & 1:1a. It results in things being speeded up considerably. Add the following lines: ``` 215 LET Z=VAL A$ ``` Change lines 220 & 240 to read: ``` 220 LET Y=22+INT (20*Z+.5) 240 LET Y=22+INT (20*Z*Z+.5) ``` Since VAL (a notorious slow-poke) is only used once, the plot gets done in about half the time it takes otherwise. In general we won’t devote much space to program improvements. Reason – many “improvements” are a matter of taste or aesthetics and don’t improve basic program operation. The exception is improvements which significantly decrease running time, or otherwise upgrade overall performance. It is expected, of course, that you will customize programs in SWN to your tastes and requirements; so any improvements you see fit are up to you. Should you find a way to improve running time, memory economy, or other vital features, let us know about it. We welcome other comments and suggestions for improvement, of course, but are not likely to print it unless the improvement is of major import. “Improvements” that actually correct some program error or improper operation are of course bugs, and will be reported as such in “Bug Alert.”