fix defaults for x any y (to be strings)
[PyX.git] / examples / axis / link.py
blob29af8c6feff3a68dc1e355cb5359cf8fa63701bb
1 import math
2 from pyx import *
4 c = canvas.canvas()
6 g1 = c.insert(graph.graphxy(width=8))
7 g1.plot(graph.data.function("y(x)=2*exp(-30*x)-exp(-3*x)", min=0, max=1))
9 g2 = c.insert(graph.graphxy(width=8, ypos=g1.height+0.5,
10 x=graph.axis.linkedaxis(g1.axes["x"])))
11 g2.plot(graph.data.function("y(x)=cos(20*x)*exp(-2*x)"))
13 c.writeEPSfile("link")
14 c.writePDFfile("link")
15 c.writeSVGfile("link")