From: <md...@us...> - 2010-06-10 14:06:57
|
Revision: 8406 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8406&view=rev Author: mdboom Date: 2010-06-10 14:06:50 +0000 (Thu, 10 Jun 2010) Log Message: ----------- [3010563] misaligned title text when using GTK backend Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_gdk.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_gdk.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_gdk.py 2010-06-10 13:48:31 UTC (rev 8405) +++ trunk/matplotlib/lib/matplotlib/backends/backend_gdk.py 2010-06-10 14:06:50 UTC (rev 8406) @@ -308,8 +308,10 @@ layout, inkRect, logicalRect = self._get_pango_layout(s, prop) l, b, w, h = inkRect - return w, h+1, h + 1 + ll, lb, lw, lh = logicalRect + return w, h + 1, h - lh + def new_gc(self): return GraphicsContextGDK(renderer=self) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |