Re: [Matplotlib-users] text element just above previous text element

2010-11-09 Thread Werner F. Bruhin
Finally figured it out after pulling some hear. Using "axes.annotate" instead of "axes.text" worked for me, i.e. something like this: axes.annotate(hstr, xy=(xCorr, yCorr), xytext=(0, 5), textcoords='offset points') instead of what I did originally. Werner On 08/11/2010 16:21, Werner F. Bruh

Re: [Matplotlib-users] text element just above previous text element

2010-11-08 Thread Jae-Joon Lee
On Tue, Nov 9, 2010 at 12:21 AM, Werner F. Bruhin wrote: > 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.

[Matplotlib-users] text element just above previous text element

2010-11-08 Thread Werner F. Bruhin
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 pre