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

# Original Python:

#   from pyx import *

#   g = graph.graphxy(width=8, x=graph.axis.bar())
#   g.plot(graph.data.file("minimal.dat", xname=0, y=2), [graph.style.changebar()])
#   g.writeEPSfile("changebar")
#   g.writePDFfile("changebar")
#   g.writeSVGfile("changebar")

using PyX

g = graph.graphxy(width=8, x=graph_axis.bar())
plot(g, graph_data.file("examples/bargraphs/minimal.dat", xname=0, y=2), [graph_style.changebar()])
writeEPSfile(g, "changebar")
writePDFfile(g, "changebar")