The following example shows several uses of symbol mode: with the pen down for a line graph, with the pen up for a scattergram, and with the pen down for geometric drawings.

Note

 

Symbol mode works only with the PA, PD, PE, PR, and PU

 

 

commands. Notice that the circle and rectangle have symbols only for

 

 

the PA command coordinate point.

 

 

Table 22-18 Example: Using the Symbol Mode Command

 

 

 

 

 

 

 

 

?E

Reset the printer.

 

 

 

 

 

 

?%0B

Enter HP-GL/2 mode.

 

 

 

 

 

 

IN;

Initialize HP-GL/2 mode.

 

 

 

 

 

 

SP1;

Select pen number 1. Even though there is

 

 

 

no physical pen, the SP command must be

 

 

 

used to enable printing.

 

 

 

 

 

 

SM*;PA200,1000;

Enter symbol mode, using the asterisk (*)

 

 

PD200,1230,400,

as the symbol; move to absolute location

 

 

1560;

(200,1000), set the pen down, and draw first

 

 

 

to (200,1230), then to (400,1560).

 

 

 

 

 

 

PD700,1670,1300,

Place the pen down and draw from the

 

 

1600,1800,2000;

current pen position (400,1560) to

 

 

PU;

(700,1670), then to (1300,1600), then

 

 

 

to (1800,2000); lift the pen.

 

 

 

 

 

 

SM3;PA700,500,

Enter symbol mode again with “3” as the

 

 

900,450,1300,850;

current symbol; print a “3” in the following

 

 

 

locations: (700,500), (900,450), and

 

 

 

(1300,850).

 

 

 

 

 

 

PA1750,1300,2500,

With the pen still up and “3” still the current

 

 

1350;PU;SM;

symbol, print a “3” at (1750,1300) and

 

 

 

(2500,1350); lift the pen and exit symbol

 

 

 

mode.

 

 

 

 

 

 

PA3300,1100;PD;

Move to (3300,1100), set the pen down, and

 

 

SMY;PA4400,1890;

enter symbol mode with “Y” as the symbol;

 

 

SMZ;

draw a line to (4400,1890) and print a “Y”;

 

 

 

re-enter symbol mode with “Z” as the current

 

 

 

symbol.

 

 

 

 

22-36The Line and Fill Attributes Group

EN

Page 600
Image 600
HP 5961-0509 manual Example Using the Symbol Mode Command, Smz, 22-36The Line and Fill Attributes Group