source: trunk/Jgraph/cube.jgr@ 662

Last change on this file since 662 was 418, checked in by Nicholas Riley, 16 years ago

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

File size: 1.0 KB
Line 
1(* Drawing of the hypercube:
2 Dimensions = 1.25 * 2.55 *)
3
4newgraph
5xaxis min 0 max 1.25 size 1.25 nodraw
6yaxis min -0.30 max 2.25 size 2.55 nodraw
7
8(* Legs *)
9newline poly pfill 0 pts
10 0.50 0.00 0.75 0.00 0.75 -0.20 0.50 -0.20
11copycurve pts
12 0.75 -0.20 1.20 -0.30 1.23 -0.28 0.75 -0.10
13copycurve pts
14 0.50 -0.20 0.05 -0.30 0.02 -0.28 0.50 -0.10
15copycurve pts
16 0.75 -0.05 1.20 0.03 1.23 0.02 0.75 -0.13
17copycurve pts
18 0.50 -0.05 0.05 0.03 0.02 0.02 0.50 -0.13
19
20(* Box *)
21newline poly pfill 1 pts
22 0.00 0.00 1.00 0.00 1.00 2.00 0.00 2.00
23copycurve pfill .80 pts
24 0.00 2.00 0.25 2.20 1.25 2.20 1.00 2.00
25copycurve pfill .9 pts
26 1.00 2.00 1.25 2.20 1.25 0.25 1.00 0.00
27
28
29newline poly pfill 0 pts
30 0.60 0.70 0.60 1.80 0.90 1.80 0.90 0.70
31
32newcurve marktype box marksize .03 .08 fill 1 pts
33 shell : awk ' BEGIN { for (i = 0.65; i < 0.90; i += 0.05) {\
34 for (j = 0.80; j < 1.70; j += 0.15) {\
35 printf("%f %f\n", i, j); } } }'
Note: See TracBrowser for help on using the repository browser.