Revision: 7278
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7278&view=rev
Author: evilguru
Date: 2009-07-21 14:47:21 +0000 (Tue, 21 Jul 2009)
Log Message:
-----------
Fix the alignment issues with the PS backend.
Modified Paths:
--------------
branches/mathtex/lib/matplotlib/backends/backend_ps.py
Modified: branches/mathtex/lib/matplotlib/backends/backend_ps.py
===================================================================
--- branches/mathtex/lib/matplotlib/backends/backend_ps.py 2009-07-21
08:31:11 UTC (rev 7277)
+++ branches/mathtex/lib/matplotlib/backends/backend_ps.py 2009-07-21
14:47:21 UTC (rev 7278)
@@ -755,7 +755,7 @@
# Glyphs
for ox, oy, info in m.glyphs:
- oy = m.height - oy + info.offset
+ oy = m.height - m.depth - oy + info.offset
postscript_name = info.postscript_name
fontsize = info.fontsize
symbol_name = info.symbol_name
@@ -775,7 +775,7 @@
# Rects
for x1, y1, x2, y2 in m.rects:
- ps = "%f %f %f %f rectfill\n" % (x1, m.height - y2, x2 - x1, y2 -
y1)
+ ps = "%f %f %f %f rectfill\n" % (x1, m.height - m.depth - y2, x2 -
x1, y2 - y1)
textwriter.write(ps)
self.set_color(*gc.get_rgb())
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins