|
From: <md...@us...> - 2010-01-11 19:23:20
|
Revision: 8076
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8076&view=rev
Author: mdboom
Date: 2010-01-11 19:23:13 +0000 (Mon, 11 Jan 2010)
Log Message:
-----------
Fix centering of mathtext markers (thanks, tcb)
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/lines.py
Modified: trunk/matplotlib/lib/matplotlib/lines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/lines.py 2010-01-11 12:28:15 UTC (rev 8075)
+++ trunk/matplotlib/lib/matplotlib/lines.py 2010-01-11 19:23:13 UTC (rev 8076)
@@ -898,7 +898,7 @@
height = ymax - ymin
max_dim = max(width, height)
path_trans = Affine2D() \
- .translate(0.5 * -width, 0.5 * -height) \
+ .translate(-xmin + 0.5 * -width, -ymin + 0.5 * -height) \
.scale((renderer.points_to_pixels(self.get_markersize()) / max_dim))
rgbFace = self._get_rgb_face()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|