On 05/20/2010 11:32 AM, Ryan May wrote: > On Thu, May 20, 2010 at 9:34 AM, Michael Droettboom<md...@stsci.edu> wrote: > >> It is a bug, but the broken behavior was kept for backward >> compatibility. Try setting the vertical alignment to 'baseline'. >> >> import matplotlib.pyplot as plt >> fig=plt.figure() >> plt.text(0.4,0.5,"some text", verticalalignment='baseline') >> plt.text(0.6,0.5,"some text with a g in it", verticalalignment='baseline') >> >> It's probably about time to fix this -- we will have to update many of >> the unit tests -- what do the rest of the devs think? >> > I'm +1, but I've been bitten by this and am not concerned personally > with the backwards incompatibility. I'm not sure how much code out > there is dependant on this. > > I've made baseline the default in SVN r8330. Only two of the unit tests changed due to this -- so hopefully it won't be too disruptive for users at large.
Mike -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users