source: trunk/Jgraph/complex-examples/diskarray.jgr@ 474

Last change on this file since 474 was 419, checked in by Nicholas Riley, 17 years ago

Jgraph: Debian changes by pzn@…

File size: 820 bytes
Line 
1(* This is an example of using convert.awk to convert a jgraph file to
2 an awk script and then use that awk script to plot several instances
3 of the original jgraph file. Here, disk.awk is used to plot a disk
4 drive 6 times.
5*)
6
7newgraph
8xaxis size 4 min 0 max 5.4 nodraw
9yaxis size 2 min 0 max 2 nodraw
10
11newcurve marktype box marksize 2 .5 fill 1 pts 2.75 1.5
12
13shell : echo "0 0" | awk -f disk.awk
14shell : echo "1 0" | awk -f disk.awk
15shell : echo "2 0" | awk -f disk.awk
16shell : echo "3 0" | awk -f disk.awk
17shell : echo "4 0" | awk -f disk.awk
18shell : echo "5 0" | awk -f disk.awk
19
20shell : echo "" | \
21 awk ' {for (i = 0; i < 6; i++) { \
22 printf("newline rarrows pts 2.75 1.25 %d.2 .4\n", i) }} '
23
24newstring hjc vjc fontsize 12 x 2.75 y 1.5 : Controller
25
26title fontsize 16 : Disk Array
Note: See TracBrowser for help on using the repository browser.