3 from pyx
.graph
.axis
import linear
4 from pyx
.graph
.axis
.texter
import rational
6 g
= graph
.graphxy(width
=8, key
=graph
.key
.key(pos
="bl"),
7 x
=linear(min=0, max=2*pi
, title
="$x$", divisor
=pi
,
8 texter
=rational(suffix
=r
"\pi")),
11 g
.plot(graph
.data
.function("y(x)=sin(x)", title
=r
"$\sin(x)$"))
12 g
.plot(graph
.data
.function("y(x)=cos(x)", title
=r
"$\cos(x)$"))
14 g
.writeEPSfile("piaxis")