next up previous
Next: How to use it? Up: DiaGraph Previous: What's DiaGraph?

It's simple, isn't it?

 

Let me give you an idea about the language with the following simple example corresponding to the Figure below. The basic idea is just to describe the way how pieces, such as lines, arrows and boxes, are connected to one another to form a block diagram.

R(1)
c("$ r $")
p
a(label-1)
R(1)
b(2,1,"$ G $")
c("stable")
r(1)
k(label-2)
R(1)
c("$ y $")
g(label-2)
d(1.5)
l(label-1)
U(label-1)
m

Each piece has a starting point and an ending point; for example, the starting point and ending point of an arrow are its tail and head, respectively. Unless otherwise specified, the starting point of a piece will automatically be placed at the ending point of the previous piece. In other words, when a piece is drawn, the current position will be moved to its ending point, and the next piece will be drawn from the current position. On the other hand, a few commands act on another position that also moves automatically with the placement of each piece, which we call the subcurrent position.

 
Figure: A simple block diagram 

As you could guess from the example,

Line/ arrow drawing commands such as l and U can take a label (rather than a number indicating the length) as their argument, in which case the line/ arrow will be drawn up to the nearest point to the label (i.e., the point with the same x or y coordinate as the point of the label) along the direction.

Other features are listed below.



next up previous
Next: How to use it? Up: DiaGraph Previous: What's DiaGraph?



Tomomichi Hagiwara
Tue Jul 28 19:12:21 JST 1998


Site Policy