some more comments on changelists
[PyX/mjg.git] / examples / graphs / inset.py
blob021174886f87ee36c91354fb31401aa19c97809c
1 from pyx import *
3 g = graph.graphxy(width=8, x=graph.axis.linear(min=-2, max=2))
4 g.plot(graph.data.function("y(x)=exp(x)"))
5 g2 = g.insert(graph.graphxy(width=3.5, xpos=1, ypos=2,
6 x=graph.axis.linear(min=0, max=3),
7 y=graph.axis.linear(min=-2, max=2)))
8 g2.plot(graph.data.function("y(x)=log(x)"))
9 g.writeEPSfile("inset")
10 g.writePDFfile("inset")