2.17. Shape section

In this section, how to draw arrows and shapes inside and outside the graph is explained.

2.17.1. A:   Arrow section

Draw arrows inside and outside the graph. The format is one line,

A: X( \(x\) ) Y( \(y\) ) AX( \(ax\) ) AY( \(ay\) )  C( \(c\) ) A( \(a\) )  N  T  Z


Arrows are plotted according to the position and size specified after A:. Each parameter is explained below.

2.17.1.1. Parameters for arrow

Table 2.35 Parameters for arrow

parameter

explanation

X( \(x\) )

Set the position of the start point of the arrow be \(x\) in the X coordinate.

Y( \(y\) )

Set the position of the start point of the arrow be \(y\) in the Y coordinate.

AX( \(ax\) )

Set the position of the end point of the arrow be \(ax\) in the X coordinate.

AY( \(ay\) )

Set the position of the end point of the arrow be \(ay\) in the Y coordinate.

C( \(c\) )

Set the arrow color be \(c\) [1] (D=e)

A( \(a\) )

Set the arrow open angle be \(a\) with a default value of 1.

N

Do not draw the line of the arrow. The default is draw.

T

Make the arrow line thicker; repeat for a thicker line.

Z

Make the arrow line thinner; repeat for a thinner line.

2.17.2. AB:   Hollow arrow section

Draw hollow arrows inside and outside the graph. Format is one line

AB: X( \(x\) ) Y( \(y\) ) AX( \(ax\) ) AY( \(ay\) )  C( \(c\) ) CB( \(cb\) ) A( \(a\) )  N  T  Z


Hollow arrows are drawn according to the position and size specified after AB:. Each parameter is explained below.

2.17.2.1. Parameters for hollow arrow

Table 2.36 Parameters for hollow arrow

parameter

explanation

X( \(x\) )

Set the position of the start point of the arrow be \(x\) in the X coordinate.

Y( \(y\) )

Set the position of the start point of the arrow be \(y\) in the Y coordinate.

AX( \(ax\) )

Set the position of the end point of the arrow be \(ax\) in the X coordinate.

AY( \(ay\) )

Set the position of the end point of the arrow be \(ay\) in the Y coordinate.

C( \(c\) )

Set the color of the arrow line be \(c\) [2] (D=e)

CB( \(cb\) )

Set the color of the inner of the arrow be \(cb\) (D=w)

A( \(a\) )

Set the arrow open angle be \(a\) with a default value of 1.

N

Do not draw the line of the arrow. The default is draw.

T

Make the arrow line thicker; repeat for a thicker line.

Z

Make the arrow line thinner; repeat for a thinner line.

2.17.2.2. Example for arrow 1

List 2.32 • Example for arrow 1

 1:  A: X(-2.5) AX(-1.5) Y( 3) AY( 3) N ZZZ
 2:  A: X(-2.5) AX(-1.5) Y( 2) AY( 2) N ZZ
 3:  A: X(-2.5) AX(-1.5) Y( 1) AY( 1) N Z
 4:  A: X(-2.5) AX(-1.5) Y( 0) AY( 0) N
 5:  A: X(-2.5) AX(-1.5) Y(-1) AY(-1) N T
 6:  A: X(-2.5) AX(-1.5) Y(-2) AY(-2) N TT
 7:  A: X(-2.5) AX(-1.5) Y(-3) AY(-3) N TTT
 8:  A: X(-1.5) AX(0) Y( 3) AY( 3) ZZZ
 9:  A: X(-1.5) AX(0) Y( 2) AY( 2) ZZ
10:  A: X(-1.5) AX(0) Y( 1) AY( 1) Z
11:  A: X(-1.5) AX(0) Y( 0) AY( 0)
12:  A: X(-1.5) AX(0) Y(-1) AY(-1) T
13:  A: X(-1.5) AX(0) Y(-2) AY(-2) TT
14:  A: X(-1.5) AX(0) Y(-3) AY(-3) TTT
15:  AB: X(0.5) AX(1.5) Y( 3) AY( 3) N ZZZ
16:  AB: X(0.5) AX(1.5) Y( 2) AY( 2) N ZZ
17:  AB: X(0.5) AX(1.5) Y( 1) AY( 1) N Z
18:  AB: X(0.5) AX(1.5) Y( 0) AY( 0) N
19:  AB: X(0.5) AX(1.5) Y(-1) AY(-1) N T
20:  AB: X(0.5) AX(1.5) Y(-2) AY(-2) N TT
21:  AB: X(0.5) AX(1.5) Y(-3) AY(-3) N TTT
22:  AB: X(1.5) AX(3.5) Y( 3) AY( 3) ZZZ
23:  AB: X(1.5) AX(3.5) Y( 2) AY( 2) ZZ
24:  AB: X(1.5) AX(3.5) Y( 1) AY( 1) Z
25:  AB: X(1.5) AX(3.5) Y( 0) AY( 0)
26:  AB: X(1.5) AX(3.5) Y(-1) AY(-1) T
27:  AB: X(1.5) AX(3.5) Y(-2) AY(-2) TT
28:  AB: X(1.5) AX(3.5) Y(-3) AY(-3) TTT
../_images/ab001.png

Fig. 2.29 Example for arrow 1

The top 7 lines are arrows without lines, the next 7 lines are ordinary arrows, the next 7 lines are hollow arrows without lines, and the last is a hollow arrow. The thickness can be changed using two parameters of Z and T. The arrows shown in the middle of the Figure 2.29 is in default. The top of arrow can be thin by Z, while the bottom can be thick by T. An arrow without a line part draws a triangular arrow with the start point of the arrow as the center of gravity toward the end point. In that case, there is no corresponding length of the arrow.

2.17.2.3. Example for arrow 2

List 2.33 • Example for arrow 2

 1:  A: X(-2.5) AX(-1.5) Y( 2) AY( 2) N TTT A(0.3)
 2:  A: X(-2.5) AX(-1.5) Y( 1) AY( 1) N TTT A(0.5)
 3:  A: X(-2.5) AX(-1.5) Y( 0) AY( 0) N TTT
 4:  A: X(-2.5) AX(-1.5) Y(-1) AY(-1) N TTT A(1.5)
 5:  A: X(-2.5) AX(-1.5) Y(-2) AY(-2) N TTT A(2.0)
 6:  A: X(-1.5) AX(0) Y( 2) AY( 2) TTT A(0.3)
 7:  A: X(-1.5) AX(0) Y( 1) AY( 1) TTT A(0.5)
 8:  A: X(-1.5) AX(0) Y( 0) AY( 0) TTT
 9:  A: X(-1.5) AX(0) Y(-1) AY(-1) TTT A(1.5)
10:  A: X(-1.5) AX(0) Y(-2) AY(-2) TTT A(2.0)
11:  AB: X(0.5) AX(1.5) Y( 2) AY( 2) TTT N A(0.3)
12:  AB: X(0.5) AX(1.5) Y( 1) AY( 1) TTT N A(0.5)
13:  AB: X(0.5) AX(1.5) Y( 0) AY( 0) TTT N
14:  AB: X(0.5) AX(1.5) Y(-1) AY(-1) TTT N A(1.5)
15:  AB: X(0.5) AX(1.5) Y(-2) AY(-2) TTT N A(2.0)
16:  AB: X(1.5) AX(3.5) Y( 2) AY( 2) TTT A(0.3)
17:  AB: X(1.5) AX(3.5) Y( 1) AY( 1) TTT A(0.5)
18:  AB: X(1.5) AX(3.5) Y( 0) AY( 0) TTT
19:  AB: X(1.5) AX(3.5) Y(-1) AY(-1) TTT A(1.5)
20:  AB: X(1.5) AX(3.5) Y(-2) AY(-2) TTT A(2.0)
../_images/ab002.png

Fig. 2.30 Example for arrow 2

Using A(), you can change the opening angle of the arrow for each arrow type. The arrows shown in the middle of Figure 2.30 is in default.

2.17.3. POLG:   Circle and polygon section

Draw circles and polygons inside and outside the graph. The format is one line,

POLG: X( \(x\) ) Y( \(y\) ) S( \(s\) ) SX( \(sx\) ) SY( \(sy\) )  CL( \(cl\) ) CB( \(cb\) ) A( \(a\) )  PL( \(pl\) )


A circle or polygon is drawn according to the position and size specified after POLG:. Each parameter is explained below.

2.17.3.1. Parameters for circle and polygon

Table 2.37 Parameters for circle and polygon

parameter

explanation

X( \(x\) )

Set the center position of the circle and polygon be \(x\) in the X coordinate.

Y( \(y\) )

Set the center position of the circle and polygon be \(y\) in the Y coordinate.

S( \(s\) )

Multiply the size of circles and polygons by \(s\) with the default value of 1. (D=1)

SX( \(sx\) )

Multiply the size of circles and polygons by \(sx\) in the x direction with the default value of 1. (D=1)

SY( \(sy\) )

Multiply the size of circles and polygons by \(sy\) in the y direction with the default value of 1.(D=1)

CL( \(cl\) )

Set the color of the circle and polygon lines be \(cl\) [3] (D=e)

CB( \(cb\) )

Set the color of the inner of the circle and polygon be \(cb\) (D=w)

A( \(a\) )

Rotate circles and polygons counterclockwise by \(a\) degrees around (\(x\), \(y\)) (D=0)

PL( \(pl\) )

Set the polygon be a \(pl\) polygon (D=5)   \(pl = 0\) In this case, it becomes a circle.

2.17.3.2. Example for circle and polygon

List 2.34 • Example for circle and polygon

 1:  POLG: X(-2) Y(2.5)  PL(3)
 2:  POLG: X( 0) Y(2.5)  PL(4)
 3:  POLG: X( 2) Y(2.5)  PL(5)
 4:  POLG: X(-2) Y(1.0)  PL(6)
 5:  POLG: X( 0) Y(1.0)  PL(7)
 6:  POLG: X( 2) Y(1.0)  PL(8)
 7:  POLG: X(-2) Y(-0.5) PL(9)
 8:  POLG: X( 0) Y(-0.5) PL(10)
 9:  POLG: X( 2) Y(-0.5) PL(20)
10:  POLG: X(-2) Y(-2.4) PL(0)
11:  POLG: X( 0) Y(-2.4) PL(0) SX(1.5)
12:  POLG: X( 2) Y(-2.4) PL(0) SY(1.5)
../_images/pl001.png

Fig. 2.31 Example for circle and polygon

2.17.4. BOX:   Box section

Draw boxes and shaded boxes inside and outside the graph. The format is one line.
BOX: X( \(x\) ) Y( \(y\) ) S( \(s\) ) SX( \(sx\) ) SY( \(sy\) )  CL( \(cl\) ) CB( \(cb\) ) CS( \(cs\) ) A( \(a\) )
  BOX( \(boxname\) )

Draw boxes according to the position and size specified after BOX:. Each parameter is explained below.

2.17.4.1. Parameters for box

Table 2.38 Parameters for box

parameter

explanation

X( \(x\) )

Set the center of the box be \(x\) in the X coordinate.

Y( \(y\) )

Set the center of the box be \(y\) in the Y coordinate.

S( \(s\) )

Multiply the size of the box by \(s\) with the default value of 1. (D=1)

SX( \(sx\) )

Multiply the size of the box by \(sx\) in the x direction with the default value of 1. (D=1)

SY( \(sy\) )

Multiply the size of the box by \(sy\) in the y direction with the default value of 1. (D=1)

CL( \(cl\) )

Set the line color of the box be \(cl\) [4] (D=e)

CB( \(cb\) )

Set the color of the inner of the box be \(cb\) (D=w)

CS( \(cs\) )

Let the shadow color of the box be \(cs\) (D=e)

A( \(a\) )

Rotate the box counterclockwise by \(a\) degrees around (\(x\), \(y\)) (D=0)

BOX( \(boxname\) ) | Let the box type be \(boxname\).

There are five types of boxes as follows.
Table 2.39 Box type

\(boxname\)

explanation

singlebox

Square box with one line

ovalbox

Box with rounded corners with one line

doublebox

Square box with double lines

shadowbox

Square box with one line and shadow

ovalshadowbox

Box with rounded corners with one line and shadow

In these \(boxname\), capitalizing the first letter makes the box line thicker. Also, capitalizing b in box increases the margin around it. If there is no string inside, the box just gets a little bigger. If there is a string, the gap between the string and the box becomes large. There are variations for each of the above 5 types of boxes, making a total of 20 types of boxes.

2.17.4.2. Example for box

List 2.35 • Example for box

 1:  BOX: X(-2.) Y(2.5)  BOX(singlebox)
 2:  BOX: X(0.3) Y(2.5)  BOX(Singlebox)
 3:  BOX: X(3.0) Y(2.5)  BOX(singleBox)
 4:  BOX: X(6.2) Y(2.5)  BOX(SingleBox)
 5:  BOX: X(-2.) Y(0.5)  BOX(ovalbox)
 6:  BOX: X(0.3) Y(0.5)  BOX(Ovalbox)
 7:  BOX: X(3.0) Y(0.5)  BOX(ovalBox)
 8:  BOX: X(6.2) Y(0.5)  BOX(OvalBox)
 9:  BOX: X(-2.) Y(-1.5) BOX(doublebox)
10:  BOX: X(0.3) Y(-1.5) BOX(Doublebox)
11:  BOX: X(3.0) Y(-1.5) BOX(doubleBox)
12:  BOX: X(6.2) Y(-1.5) BOX(DoubleBox)
13:  BOX: X(-2.) Y(-3.5) BOX(shadowbox)
14:  BOX: X(0.3) Y(-3.5) BOX(Shadowbox)
15:  BOX: X(3.0) Y(-3.5) BOX(shadowBox)
16:  BOX: X(6.2) Y(-3.5) BOX(ShadowBox)
17:  BOX: X(-2.) Y(-5.5) BOX(ovalshadowbox)
18:  BOX: X(0.3) Y(-5.5) BOX(Ovalshadowbox)
19:  BOX: X(3.0) Y(-5.5) BOX(ovalshadowBox)
20:  BOX: X(6.2) Y(-5.5) BOX(OvalshadowBox)
../_images/bx001.png

Fig. 2.32 Example for box

2.17.5. RIBN:   Ribbon section

Draw a ribbon inside and outside the graph. Format is one line

RIBN: X( \(x\) ) Y( \(y\) ) S( \(s\) ) SX( \(sx\) ) SY( \(sy\) )  CL( \(cl\) ) CB( \(cb\) ) CS( \(cs\) ) A( \(a\) ) T  Z


The ribbon is drawn according to the position and size specified after RIBN:. Each parameter is explained below.

2.17.5.1. Parameters for ribbon

Table 2.40 Parameters for ribbon

parameter

explanation

X( \(x\) )

Set the center of the ribbon be \(x\) in the X coordinate.

Y( \(y\) )

Let the center of the ribbon be \(y\) in the Y coordinate.

S( \(s\) )

Multiply the size of the ribbon by \(s\) with the default value of 1 (D=1)

SX( \(sx\) )

Multiply the size of the ribbon by \(sx\) in the x direction with the default value of 1. (D=1)

SY( \(sy\) )

Multiply the size of the ribbon by \(sy\) in the y direction with the default value of 1. (D=1)

CL( \(cl\) )

Set the ribbon line color be \(cl\) [5] (D=e)

CB( \(cb\) )

Set the color of the inner of the ribbon be \(cb\) (D=w)

CS( \(cs\) )

Set the shadow color of the ribbon be \(cs\) (D=j)

A( \(a\) )

Rotate the ribbon counterclockwise by \(a\) degrees around (\(x\), \(y\)) (D=0)

T

Make the ribbon line thicker; repeat for a thicker line.

Z

Make the ribbon line thinner; repeat for a thinner line.

2.17.5.2. Example for ribbon

List 2.36 • Example for ribbon

1:  RIBN: X(0) Y(2.0)  SX(1.5) SY(2.0)
2:  RIBN: X(0) Y(0)
3:  RIBN: X(0) Y(-1.5) S(1.5) CB(y) CS(rrr)
4:  RIBN: X(-5) Y(-4.5) A(-45)
5:  RIBN: X( 5) Y(-4.5) A( 45)
../_images/rb001.png

Fig. 2.33 Example for ribbon

2.17.6. STAR:   Star section

Draw a star on the inside and outside of the graph. The format is one line,

STAR: X( \(x\) ) Y( \(y\) ) S( \(s\) ) SX( \(sx\) ) SY( \(sy\) )  CL( \(cl\) ) CB( \(cb\) ) A( \(a\) ) T  Z   PL( \(pl\) ) V( \(v\) )


A star shape is drawn according to the position and size specified after STAR:. Each parameter is explained below.

2.17.6.1. Parameters for star

Table 2.41 Parameters for star

parameter

explanation

X( \(x\) )

Set the center of the star be \(x\) in the X coordinate.

Y( \(y\) )

Set the center of the star be \(y\) in the Y coordinate.

S( \(s\) )

Multiply the size of the star by \(s\) with the default value of 1. (D=1)

SX( \(sx\) )

Multiply the size of the star by \(sx\) in the x direction with the default value of 1. (D=1)

SY( \(sy\) )

Multiply the size of the star by \(sy\) in the y direction with the default value of 1.(D=1)

CL( \(cl\) )

Set the color of the star line be \(cl\) [6] (D=e)

CB( \(cb\) )

Set the color of the inner of the star be \(cb\) (D=w)

A( \(a\) )

Rotate the star counterclockwise by \(a\) degrees around (\(x\), \(y\)) (D=0)

T

Make the star line thicker; repeat for a thicker line.

Z

Make the star line thinner; repeat for a thinner line.

PL( \(pl\) )

Set the star polygon be a \(pl\) polygon (D=5)

V( \(v\) )

Set the unevenness of the polygon of the star be \(v\) with the default value 1. (D=1)

2.17.6.2. Example for star

List 2.37 • Example for star

 1:  STAR: X(-2) Y(2.5) PL(3)
 2:  STAR: X( 0) Y(2.5) PL(4)
 3:  STAR: X( 2) Y(2.5) PL(5)
 4:  STAR: X(-2) Y(1.0) PL(6)
 5:  STAR: X( 0) Y(1.0) PL(7)
 6:  STAR: X( 2) Y(1.0) PL(8)
 7:  STAR: X(-2) Y(-0.5) PL(9)
 8:  STAR: X( 0) Y(-0.5) PL(10)
 9:  STAR: X( 2) Y(-0.5) PL(20)
10:  STAR: X(-2) Y(-2.0) PL(5) V(0.5)
11:  STAR: X( 0) Y(-2.0) PL(5) V(1.3)
12:  STAR: X( 2) Y(-2.0) PL(5) V(1.6)
../_images/st001.png

Fig. 2.34 Example for star