root/trunk/Jgraph/ex1.jgr

Revision 418, 0.9 kB (checked in by nicholas, 11 months ago)

Jgraph 8.3 from http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.tar.gz

Line 
1 (* This is a graph for Figure 1 of the USENIX jgraph abstract.  It shows
2    three simple curves plotted with jgraph.
3
4    There are two graphs plotted -- the first is the actual jgraph.  The
5    second is a text string showing the input for the graph.  Print it
6    out -- you'll see what I mean.
7    *)
8
9 newgraph
10 xaxis size 2
11 yaxis size 1.5
12
13 newcurve pts 0 6  1 9  2 11  3 14  4 18 5 20
14 newcurve marktype triangle linetype solid
15          pts 0 3  1 4  2 7  3 9  4 10 5 13
16 newcurve marktype none linetype dashed
17          pts 0 0  1 2  2 3  3 5  4 6  5 9
18
19 copygraph
20 x_translate -3.5
21 border
22 xaxis nodraw min 0 max 1 size 2.8
23 yaxis nodraw min 0 max 1
24
25 newstring hjl vjc x .05 y .5 font Courier fontsize 7 :
26 newgraph\
27   newcurve \
28     pts 0 6  1 9  2 11  3 14  4 18 5 20\
29   newcurve \
30     marktype triangle \
31     linetype solid\
32     pts 0 3  1 4  2 7  3 9  4 10 5 13\
33   newcurve \
34     marktype none \
35     linetype dashed\
36     pts 0 0  1 2  2 3  3 5  4 6  5 9
Note: See TracBrowser for help on using the browser.