3 g
= graph
.graphxy(width
=8,
4 x
=graph
.axis
.linear(min=0, max=2),
5 y
=graph
.axis
.linear(min=0, max=2),
6 key
=graph
.key
.key(pos
="br", dist
=0.1))
7 g
.plot([graph
.data
.function("x(y)=y**4", title
=r
"$x = y^4$"),
8 graph
.data
.function("x(y)=y**2", title
=r
"$x = y^2$"),
9 graph
.data
.function("x(y)=y", title
=r
"$x = y$"),
10 graph
.data
.function("y(x)=x**2", title
=r
"$y = x^2$"),
11 graph
.data
.function("y(x)=x**4", title
=r
"$y = x^4$")],
12 [graph
.style
.line([color
.gradient
.Rainbow
])])
13 g
.writeEPSfile("change")
14 g
.writePDFfile("change")