2.7.6.8
AXIS
..
. . .
...
..
.....
.
.....
. . .
..
.
...................
.
....
(abbreviated format: AX.)
I Format I
AXIS
x, p, r
Function
Example
x .
..
.
..
. Integer specifying the axis drawn
(0
or
1)
p
..
...
. . Integer specifying
the
scale pitch (
-999
to
999)
r . .
...
..
Integer specifying the
number
of
repe.titions (1
to
255)
This
statement
draws the X-axis when x = 0 and
theY-axis
when x =
1.
The number
of
scale marks specified in r are drawn with a pitch
of
p.
The
following example draws the X and Y axes with scale marks from
-240
to
240
at
10
unit
intervals.
1
0 M
ODE
G R
..
. .
...
..
.
..
. . .
..
..
Switches the printer
to
the
graphic
mode.
20
MO
V E
2 4 0 .
5
30
G
PRINT
[ 1 ' 0 J '
" A "
4 0 M
OV
E
2 4 0 . fJ
..
. . . .
........
5 0
AX
I S
0.
-1
0 .
48
. .
.......
60
MO
V E 2 4
0.
-5
00
70
GPR
I
NT
[ 1
.0]
. " B "
Lifts the pen and moves
it
to
position
A
(240, 0),
Draws the Y-axis from position A
to
position B with scale marks included
at
10-unit interval.
8 0 M 0 V E
0.
- 2 4 0 . . . . . . . . . . . . Lifts
the
pen and moves
it
to
position
c (0,
-240).
90
G
PR
I
NT
[ 1 . 0
J,
" C "
1
00
M
OV
E 0 . -
240
1 1 0 A X I S 1 , 1
0,
4 8 . . . . . . . . . Draws the X-axis from position C
to
position D with scale marks included
at 1
0-unit intervals.
1
20
M
OV
E 4
70.
- 2 4 0
1
30
G
PR
I N T [ 1 . 0 J . " D "
14
0 MO
DE
TN
B
The
coordinates can be used in the same manner
as
ordinary Cartesian coordinates
after setting the
point
of
intersection
of
the X and Y axes
as
the new origin. (X =
-240
to 240, Y =
-240
to
240)
----
----
--------
------
------------------
--------
--------------
--
-----89