Last change
on this file since 672 was 419, checked in by Nicholas Riley, 17 years ago |
Jgraph: Debian changes by pzn@…
|
File size:
820 bytes
|
Rev | Line | |
---|
[419] | 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 |
|
---|
| 7 | newgraph
|
---|
| 8 | xaxis size 4 min 0 max 5.4 nodraw
|
---|
| 9 | yaxis size 2 min 0 max 2 nodraw
|
---|
| 10 |
|
---|
| 11 | newcurve marktype box marksize 2 .5 fill 1 pts 2.75 1.5
|
---|
| 12 |
|
---|
| 13 | shell : echo "0 0" | awk -f disk.awk
|
---|
| 14 | shell : echo "1 0" | awk -f disk.awk
|
---|
| 15 | shell : echo "2 0" | awk -f disk.awk
|
---|
| 16 | shell : echo "3 0" | awk -f disk.awk
|
---|
| 17 | shell : echo "4 0" | awk -f disk.awk
|
---|
| 18 | shell : echo "5 0" | awk -f disk.awk
|
---|
| 19 |
|
---|
| 20 | shell : echo "" | \
|
---|
| 21 | awk ' {for (i = 0; i < 6; i++) { \
|
---|
| 22 | printf("newline rarrows pts 2.75 1.25 %d.2 .4\n", i) }} '
|
---|
| 23 |
|
---|
| 24 | newstring hjc vjc fontsize 12 x 2.75 y 1.5 : Controller
|
---|
| 25 |
|
---|
| 26 | title fontsize 16 : Disk Array
|
---|
Note:
See
TracBrowser
for help on using the repository browser.