prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / examples / graphs / change.py
blob227ad8b7f6f0e31a970ac4d6e1f6b0fc4005f8e8
1 from pyx import *
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")
15 g.writeSVGfile("change")