add 3d graph examples
[PyX/mjg.git] / examples / 3dgraphs / surface.py
blobd8c6b5fd8609cad369adf6181b7de968f63a96f5
1 #!/usr/bin/env python
2 from pyx import *
4 g = graph.graphxyz(size=4, x2=None, y2=None)
5 g.plot(graph.data.file("surface.dat", x=1, y=2, z=3), [graph.style.surface()])
6 g.dodata()
7 g.writeEPSfile("surface")
8 g.writePDFfile("surface")