prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / examples / graphs / axis.py
blobba19aa0c4a9cb7f4ef3df40e5749dac088000e83
1 from pyx import *
3 g = graph.graphxy(width=8,
4 x=graph.axis.log(min=1e-1, max=1e4, title=r"$x$-axis"),
5 y=graph.axis.lin(max=5, title=r"$y$-axis"))
6 g.plot(graph.data.function("y(x)=tan(log(1/x))**2"))
7 g.writeEPSfile("axis")
8 g.writePDFfile("axis")
9 g.writeSVGfile("axis")