Re: [Matplotlib-users] Legend in X coordinates

2008-12-31 Thread Christopher Brown
Hi Jae-Joon, Your simpler suggestion of drawing the fig twice is just fine for my needs. Thank you. JL> The exact location of the legend is known at drawing time. Thus, the JL> location of the text needs to be calculated at the drawing. I may JL> help you with this but it is quite tricky and you

Re: [Matplotlib-users] Legend in X coordinates

2008-12-30 Thread Jae-Joon Lee
The exact location of the legend is known at drawing time. Thus, the location of the text needs to be calculated at the drawing. I may help you with this but it is quite tricky and you need some knowledge on internals of the mpl. Or, you may simply draw the figure twice (with same renderer), where

[Matplotlib-users] Legend in X coordinates

2008-12-30 Thread Christopher Brown
Hi, How can I get the position, in x coordinates/units, of the legend? Specifically, I'd like to get the center of the legend box, because I want to add some text that is centered-aligned with the legend. Thanks. -- Christopher Brown, Ph.D. Department of Speech and Hearing Science Arizona Stat