Revision: 3761
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3761&view=rev
Author:   mdboom
Date:     2007-08-31 08:09:27 -0700 (Fri, 31 Aug 2007)

Log Message:
-----------
Fix typo.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/backends/backend_agg.py

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_agg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_agg.py     2007-08-30 
19:14:55 UTC (rev 3760)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_agg.py     2007-08-31 
15:09:27 UTC (rev 3761)
@@ -172,7 +172,7 @@
         """
         if __debug__: verbose.report('RendererAgg.draw_mathtext',
                                      'debug-annoying')
-        ox, oy, width, height, descent, fonts, used_characters = \
+        ox, oy, width, height, descent, font_image, used_characters = \
             self.mathtext_parser.parse(s, self.dpi.get(), prop)
 
         if angle == 90:
@@ -183,10 +183,9 @@
         else:
             x = int(x) + ox
             y = int(y) - height + oy
-        for font in fonts:
-            if angle == 90:
-                font.horiz_image_to_vert_image() # <-- Rotate
-            self._renderer.draw_text( font, x, y + 1, gc)
+        if angle == 90:
+            font_image.rotate() # <-- Rotate 90 deg
+        self._renderer.draw_text_image(font_image, x, y + 1, gc)
         if 0:
             self._renderer.draw_rectangle(gc, None,
                                           int(x),
@@ -212,7 +211,7 @@
 
         #print x, y, int(x), int(y)
 
-        self._renderer.draw_text(font, int(x), int(y) + 1, gc)
+        self._renderer.draw_text_image(font.get_image(), int(x), int(y) + 1, 
gc)
 
 
     def get_text_width_height_descent(self, s, prop, ismath, rgb=(0,0,0)):
@@ -233,9 +232,9 @@
             return n,m
 
         if ismath:
-            ox, oy, width, height, descent, fonts, used_characters = \
+            ox, oy, width, height, descent, font_image, used_characters = \
                 self.mathtext_parser.parse(s, self.dpi.get(), prop)
-            return width, height, depth
+            return width, height, descent
         font = self._get_agg_font(prop)
         font.set_text(s, 0.0, flags=LOAD_DEFAULT)  # the width and height of 
unrotated string
         w, h = font.get_width_height()


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to