aboutsummaryrefslogtreecommitdiffstats
path: root/examples/graphs/function.jl
blob: e995855ccd5b7183e124c9170a84913f29d065f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# Original Python:
# from pyx import *
# 
# g = graph.graphxy(width=8)
# g.plot(graph.data.function("y(x)=sin(x)/x", min=-15, max=15))
# g.writeEPSfile("function")
# g.writePDFfile("function")
# g.writeSVGfile("function")

using PyX

g = graph.graphxy(width=8)
plot(g, graph_data_function("y(x)=sin(x)/x", min=-15, max=15))
writeEPSfile(g, "function")
writePDFfile(g, "function")