aboutsummaryrefslogtreecommitdiffstats
path: root/examples/graphs/minimal.jl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphs/minimal.jl')
-rw-r--r--examples/graphs/minimal.jl16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/graphs/minimal.jl b/examples/graphs/minimal.jl
new file mode 100644
index 0000000..fe4d272
--- /dev/null
+++ b/examples/graphs/minimal.jl
@@ -0,0 +1,16 @@
+
+# Original Python:
+# from pyx import *
+#
+# g = graph.graphxy(width=8)
+# g.plot(graph.data.file("minimal.dat", x=1, y=2))
+# g.writeEPSfile("minimal")
+# g.writePDFfile("minimal")
+# g.writeSVGfile("minimal")
+
+using PyX
+
+g = graph.graphxy(width=8)
+plot(g, graph_data.file("examples/graphs/minimal.dat", x=1, y=2))
+writeEPSfile(g, "minimal")
+writePDFfile(g, "minimal")