Revision: 3762
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3762&view=rev
Author: mdboom
Date: 2007-08-31 08:40:42 -0700 (Fri, 31 Aug 2007)
Log Message:
-----------
Oops in last commit.
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-31
15:09:27 UTC (rev 3761)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_agg.py 2007-08-31
15:40:42 UTC (rev 3762)
@@ -172,7 +172,7 @@
"""
if __debug__: verbose.report('RendererAgg.draw_mathtext',
'debug-annoying')
- ox, oy, width, height, descent, font_image, used_characters = \
+ ox, oy, width, height, descent, fonts, used_characters = \
self.mathtext_parser.parse(s, self.dpi.get(), prop)
if angle == 90:
@@ -183,9 +183,10 @@
else:
x = int(x) + ox
y = int(y) - height + oy
- if angle == 90:
- font_image.rotate() # <-- Rotate 90 deg
- self._renderer.draw_text_image(font_image, x, y + 1, gc)
+ for font in fonts:
+ if angle == 90:
+ font.horiz_image_to_vert_image() # <-- Rotate
+ self._renderer.draw_text( font, x, y + 1, gc)
if 0:
self._renderer.draw_rectangle(gc, None,
int(x),
@@ -211,7 +212,7 @@
#print x, y, int(x), int(y)
- self._renderer.draw_text_image(font.get_image(), int(x), int(y) + 1,
gc)
+ self._renderer.draw_text(font, int(x), int(y) + 1, gc)
def get_text_width_height_descent(self, s, prop, ismath, rgb=(0,0,0)):
@@ -232,7 +233,7 @@
return n,m
if ismath:
- ox, oy, width, height, descent, font_image, used_characters = \
+ ox, oy, width, height, descent, fonts, used_characters = \
self.mathtext_parser.parse(s, self.dpi.get(), prop)
return width, height, descent
font = self._get_agg_font(prop)
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