/usr/share/doc/python-pyx-doc/gallery/graphs/cycliclink.py is in python-pyx-doc 0.12.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from pyx import *
c = canvas.canvas()
g1 = c.insert(graph.graphxy(width=8,
x=graph.axis.linear(min=0, max=1),
x2=graph.axis.linkedaxis()))
g2 = c.insert(graph.graphxy(width=8, ypos=g1.height+0.5,
x=graph.axis.linkedaxis(),
x2=graph.axis.log(min=1, max=1000)))
g1.axes["x2"].setlinkedaxis(g2.axes["x2"])
g2.axes["x"].setlinkedaxis(g1.axes["x"])
g1.plot(graph.data.function("y(x)=2*exp(-30*x)-exp(-3*x)"))
g2.plot(graph.data.function("y(x)=cos(20*x)*exp(-2*x)"))
c.writeEPSfile("cycliclink")
c.writePDFfile("cycliclink")
|