From: <md...@us...> - 2008-06-10 15:35:18
|
Revision: 5460 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5460&view=rev Author: mdboom Date: 2008-06-10 08:35:13 -0700 (Tue, 10 Jun 2008) Log Message: ----------- [ 1985420 ] Repair of baseline alignment in Text._get_layout Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/text.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2008-06-10 14:29:43 UTC (rev 5459) +++ trunk/matplotlib/CHANGELOG 2008-06-10 15:35:13 UTC (rev 5460) @@ -1,8 +1,12 @@ +2008-06-10 Fix text baseline alignment bug. [ 1985420 ] Repair of + baseline alignment in Text._get_layout. Thanks Stan West - + MGD + 2008-06-09 Committed Gregor's image resample patch to downsampling images with new rcparam image.resample - JDH -2008-06-09 Don't install Enthought.Traits along with matplotlib. For - matplotlib developers convenience, it can still be +2008-06-09 Don't install Enthought.Traits along with matplotlib. For + matplotlib developers convenience, it can still be installed by setting an option in setup.cfg while we figure decide if there is a future for the traited config - DSD Modified: trunk/matplotlib/lib/matplotlib/text.py =================================================================== --- trunk/matplotlib/lib/matplotlib/text.py 2008-06-10 14:29:43 UTC (rev 5459) +++ trunk/matplotlib/lib/matplotlib/text.py 2008-06-10 15:35:13 UTC (rev 5460) @@ -246,7 +246,7 @@ if valign=='center': offsety = (ymin + height/2.0) elif valign=='top': offsety = (ymin + height) - elif valign=='baseline': offsety = (ymin + height) + baseline + elif valign=='baseline': offsety = (ymin + height) - baseline else: offsety = ymin xmin -= offsetx This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |