Hi Andrew,

I was able to change the values by changing this line (from multisubaxis.py):

g.plot([graph.data.list([["A", 5], ["B", 6]], xname=1, y=2),
        graph.data.list([["A", 7], ["B", 8], ["C", 9]], xname=1, y=2)],
       [graph.style.barpos(fromvalue=0), graph.style.bar()])

to this one:

g.plot([graph.data.list([["A", 5], ["B", 6]], xname=1, y=2),
        graph.data.list([["A", 7], ["B", 8], ["C", 9]], xname=1, y=2)],
       [graph.style.barpos(fromvalue=0, subnames = ["50", "160"]),
graph.style.bar()])

Maybe this isn't ideal - I guess you'll have to manually extract the
subnames from your data somehow. Anyway, the "subnames" keyword is
documented in section 4.5 of the manual, in the paragraph about
"barpos". These hidden classes really get me scratching my head...:)

Good luck,
James

Reply via email to