|
From: <lee...@us...> - 2008-11-21 16:52:29
|
Revision: 6430
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6430&view=rev
Author: leejjoon
Date: 2008-11-21 16:52:25 +0000 (Fri, 21 Nov 2008)
Log Message:
-----------
fixed a bug the get_text_width_height_descent() method of the pdf backend not returning the correct text height.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2008-11-21 11:28:32 UTC (rev 6429)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2008-11-21 16:52:25 UTC (rev 6430)
@@ -1577,7 +1577,8 @@
dvi = dviread.Dvi(dvifile, self.dpi)
page = iter(dvi).next()
dvi.close()
- return page.width, page.height, page.descent
+ # A total height (including the descent) needs to be returned.
+ return page.width, page.height+page.descent, page.descent
if ismath:
w, h, d, glyphs, rects, used_characters = \
self.mathtext_parser.parse(s, self.dpi, prop)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|