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

# 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.barpos(fromvalue=0), graph.style.bar()])
#   g.writeEPSfile("fromvalue")
#   g.writePDFfile("fromvalue")
#   g.writeSVGfile("fromvalue")

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.barpos(fromvalue=0), graph_style.bar()])
writeEPSfile(g, "fromvalue")
writePDFfile(g, "fromvalue")