I like to have 2 or 3 text elements "stacked" on top of each other on top of a bar.
Currently it works for the first text element by doing:
height = bar.get_height()
xCorr = bar.get_x()
yCorr = 0.20 + height
txtax = axes.text(xCorr, yCorr, hstr)
trying to add the second text just above the previous one I tried this:
pCorr = yCorr + txtax.get_size() + 0.4
txtax = axes.text(xCorr, pCorr, hstrPerc)
It looks like my problem is that get_x() returns a value in ticks and txtax.get_size() is in pixels and I can't find a way to get at the height of the text element in ticks.
Can anyone please push me in the right direction.
Werner