Function
Fill type
Fill distance
Fill slant
Pen thickness
Pen condition
Rotation
Scaling points
3.2.
Plot Area and Unit Setting Instructions
Instruction
IP
SC
IW
RO
PG
IP - Input scaling point
IP [ P1
, P1
[,P2
X
Y
P1
;
coordinate of P1
X
X
P2
;
coordinate of P2
X
X
• The coordinate values used are absolute values in graphics units.
• Sets the location of the scaling points(P1, P2).
• Coordinate values for P1
The IP instruction is ignored when the set coordinates are outside the print area.
• Using this instruction without a parameter field initializes the scaling points(P1, P2).
• P2
and P2
may be omitted. (If P2
X
Y
distance between P1 and P2).
SC - Scale
SC
Xmin,
Xmax, Ymin, Ymax
Xmin ; X coordinate of P1
Ymin ; Y coordinate of P1
• Sets the scale for the coordinates the user wants to establish.
• Coordinate values for Xmin, Xmax, Ymin and Ymax are given as real numbers.
• Using this instruction without a parameter field turns the scaling off.
• The technical terms user unit and graphics unit as used in this manual are defined as follows;
User unit
Graphics unit
10 '*** SCEX ***
20 LPRINT "IN; IP3000,2000,4500,3500;SP1;SC0,120,0,120;"
30 FOR T=0 TO 2*3.1416+3.1416/20 STEP 3.1416/20
40 X=COS(T)*100
50 Y=SIN(T)*100
60 LPRINT "PA";X;",";Y;";PD;"
70 NEXT T
80 LPRINT "PU;"
90 END
Equivalent
Instruction
FT;
FT;
FT;
PT;
PU;
RO;
IP;
Function
Scaling point
Scale
Input window
Rotate coordinate system
Page output
P2
]] [;]
X,
Y
P1
;
coordinate of P1
Y
Y
P2
;
coordinate of P2
Y
Y
, P
,
and P2
are given as integer numbers.
X
1Y
P2X
Y
and P2
X
: the unit of the coordinates set by the SC instruction
: the unit (1/1016 of an inch) of the coordinates not set by the SC instruction
<Sample 61>
CHAPTER 9 HP-GL - 7
Condition
Bi-directional fill, type 1
1% of distance from P1 to P2
0 degrees
Set at 0.3 mm
Pen up
Set at 0 degrees
Initialized according to
paper size
are omitted, P2 is set automatically so as not to alter the
Y
Xmax ; X coordinate of P2
Ymax ; Y coordinate of P2
2009/06/29