aboutsummaryrefslogtreecommitdiffstats
path: root/examples/3dgraphs/surface.jl
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-02-21 14:09:55 -0800
committerbnewbold <bnewbold@robocracy.org>2016-02-21 14:09:55 -0800
commit439655aaa40568acd0b4f536e67f6b90031ee147 (patch)
treec94bc6acc9a526812a862d34673c875e56541a6c /examples/3dgraphs/surface.jl
parent13db261935cd85bc91563999f451bc93081b34de (diff)
downloadPyX.jl-439655aaa40568acd0b4f536e67f6b90031ee147.tar.gz
PyX.jl-439655aaa40568acd0b4f536e67f6b90031ee147.zip
add examples (all ports from PyX 0.14.1)
Diffstat (limited to 'examples/3dgraphs/surface.jl')
-rw-r--r--examples/3dgraphs/surface.jl17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/3dgraphs/surface.jl b/examples/3dgraphs/surface.jl
new file mode 100644
index 0000000..e19a00c
--- /dev/null
+++ b/examples/3dgraphs/surface.jl
@@ -0,0 +1,17 @@
+
+# Original Python:
+# from pyx import *
+#
+# g = graph.graphxyz(size=4, x2=None, y2=None)
+# g.plot(graph.data.file("surface.dat", x=1, y=2, z=3), [graph.style.surface()])
+# g.writeEPSfile("surface")
+# g.writePDFfile("surface")
+# g.writeSVGfile("surface")
+
+using PyX
+
+g = graph.graphxyz(size=4, x2=nothing, y2=nothing)
+plot(g, graph_data.file("examples/3dgraphs/surface.dat", x=1, y=2, z=3),
+ [graph_style.surface()])
+writeEPSfile(g, "surface")
+writePDFfile(g, "surface")