Plotting the Data
1 2
3
DOT 4
ROW 5
6
7
8
|
| 1st |
|
|
|
| 2nd |
|
| 1st |
| 2nd | ||
| CHARACTER |
|
| CHARACTER | CHARACTER | CHARACTER | ||||||||
| ODD COLUMNS |
| ODD COLUMNS | ASCII | DECIMAL | ASCII | DECIMAL | |||||||
1 | 3 | 5 | 7 | 9 | 11 | 1 | 3 | 5 | 7 | 9 | 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| * | 42 | @ | 64 |
|
|
|
|
|
|
|
|
|
|
| 73 | A | 65 | |
|
|
|
|
|
|
|
|
|
|
| \ | 92 | @ | 64 |
|
|
|
|
|
|
|
|
|
|
| * | 42 | @ | 64 |
|
|
|
|
|
|
|
|
|
|
| 73 | A | 65 | |
|
|
|
|
|
|
|
|
|
|
| \ | 92 | @ | 64 |
|
|
|
|
|
|
|
|
|
|
| * | 42 | @ | 64 |
|
|
|
|
|
|
|
|
|
|
| 73 | A | 65 | |
|
|
|
|
|
|
|
|
|
|
|
|
Figure 4-8. Odd Dot Plot Pattern Plan
The following program uses the Odd Dot Plot control code to produce the image.
10LPRINT ”Odd Dot Plot”
20FOR I=1 TO 8
30READ R1
40READ R2
50LPRINT CHR$(5);
60FOR N=1 TO 25
70LPRINT CHR$(R1);CHR$(R2);
80NEXT N
90LPRINT
100NEXT I
110DATA 42, 64, 73, 65, 92, 64, 42, 64, 73, 65, 92, 64, 42, 64, 73, 65
120LPRINT
DThe image is printed 25 times as shown in Figure
DAn entire dot row is plotted in one printing pass. Consequently, the first row of all 25 images is printed in one pass, followed by the second row, etc, until all rows have been printed.
Figure 4-9. Sample Odd Dot Plot
Graphics |