1 # When plotting several bars with the same style in a bar graph,
2 # they are plotted side by side. You have to create a nested bar
3 # axis to make each position in the bar graph to contain another
8 bap
= graph
.axis
.painter
.bar
9 a
= graph
.axis
.nestedbar(painter
=bap(nameattrs
=[trafo
.rotate(45),
13 g
= graph
.graphxy(width
=8, x
=a
)
14 g
.plot([graph
.data
.file("bar.dat", xname
=1, y
=2),
15 graph
.data
.file("bar.dat", xname
=1, y
=3)],
17 g
.writeEPSfile("compare")
18 g
.writePDFfile("compare")