Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68e4f80

Browse files
committed
Fix dashed text bug where text was at the wrong end of the dash (Thanks Andrea Gavana)
svn path=/trunk/matplotlib/; revision=5694
1 parent 316ae24 commit 68e4f80

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2008-06-27 Fix dashed text bug where text was at the wrong end of the
2+
dash - MGD
3+
14
2008-06-26 Fix mathtext bug for expressions like $x_{\leftarrow}$ - MGD
25

36
2008-06-26 Fix direction of horizontal/vertical hatches - MGD

lib/matplotlib/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ def __init__(self,
745745

746746
def get_position(self):
747747
"Return x, y as tuple"
748-
x = float(self.convert_xunits(self._dashx))
749-
y = float(self.convert_yunits(self._dashy))
748+
x = float(self.convert_xunits(self._x))
749+
y = float(self.convert_yunits(self._y))
750750
return x, y
751751

752752
def get_prop_tup(self):

0 commit comments

Comments
 (0)