84
HPIIISi TWINAX CARD
For example: ¬GS3;01;20;02;50;04;80 ¬GP5;900;2400;600;3;10;20;30 draws
a three-segment pie chart. If the attached printer is a PCL color printer,
the first segment will be blue (01), the second segment will be red (02),
and the third segment will be green (04). The segments will be shaded
at 20%, 50%, and 80% respectively.
The first segment (value 10) will be
1
⁄
6
of the complete circle
(10/[10+20+30] =
10
⁄
60
=
1
⁄
6
), the second segment (value 20) will be
1
⁄
3
(
20
⁄
60
)
of the complete circle, and the third segment (value 30) will be
1
⁄
2
(
30
⁄
60
)
of the complete circle, as shown in Figure 7-14.
Figure 7-14. A three-segment pie chart.