Language Reference
SCALE
Example Use the SCALE command to draw Y=X2 on the
130 | OUTPUT 723;"CLRDSP;" | Clear graphics from memory . | |||
140 | OUTPUT 723;"TRDSP TRA,OFF;" | Turn o trace A. | |||
150 | OUTPUT 723;"ANNOT OFF;" | Turn o annotation. | |||
160 | OUTPUT 723;"GRAT OFF;" | Turn o graticule . | |||
170 | OUTPUT 723;"SCALE | Change minimum and maximum | |||
|
|
|
|
| values for the X axis to 010 and 10 |
|
|
|
|
| and the Y axis to 0 and 100. |
180 | OUTPUT 723;"PU;PA | Outline the perimeter of the coordi- | |||
|
|
|
|
| nate system. |
190 | OUTPUT 723;"PD;PA | Semicolon suppresses | |||
|
|
|
|
| feed. |
200 | OUTPUT |
| |||
210 | OUTPUT | 723;"VARDEF | Dene | ||
|
|
|
|
| equal to 010. |
220 | OUTPUT | 723;"VARDEF | YAXIS,0;" | Dene | |
|
|
|
|
| equal to 0. |
230 | OUTPUT | 723;"PU;PA | Move pen. | ||
240 | OUTPUT | 723;"REPEAT;"; | Begin repeat loop . | ||
250 | OUTPUT | 723;"ADD | XAXIS,XAXIS,1;"; | Increase XAXIS by 1. | |
260 | OUTPUT | 723;"MPY | YAXIS,XAXIS,XAXIS;"; | Square XAXIS. | |
270 | OUTPUT | 723;"PA | XAXIS,YAXIS;"; | Plot square function point by point | |
|
|
|
|
| until reaching the end of the X axis |
|
|
|
|
| scale. |
280 | OUTPUT | 723;"UNTIL | XAXIS,EQ,10;" | End repeat loop when XAXIS=10. | |
290 | OUTPUT | 723;"PA | PU | Write label. |
300OUTPUT 723;"TEXT$Y=X"
310OUTPUT 723;CHR$(130);"$;"