2 import sys
; sys
.path
[:0] = ["../.."]
6 p
= lambda phi
: graph
.graphxyz
.central(10, phi
, 10)
7 # p = lambda phi: graph.graphxyz.parallel(phi, 10)
9 d
= document
.document()
13 g
= c
.insert(graph
.graphxyz(10.5, 10, size
=6, projector
=p(phi
),
14 x
=graph
.axis
.lin(painter
=graph
.axis
.painter
.regular(gridattrs
=[])),
15 y
=graph
.axis
.lin(painter
=graph
.axis
.painter
.regular(gridattrs
=[])),
16 z
=graph
.axis
.lin(painter
=graph
.axis
.painter
.regular(gridattrs
=[]))))
17 g
.plot(graph
.data
.values(x
=[0, 0, 0, 1], y
=[0, 0, 1, 1], z
=[0, 1, 0, 1], color
=[0, 0.33, 0.67, 1]),
18 [graph
.style
.gridpos(index1
=1, index2
=2), graph
.style
.surface(gridcolor
=color
.gray(0.9))])
20 g
.text(2, 2, str(phi
))
21 d
.append(document
.page(c
))
24 d
.writePSfile("test_graph3dloop")