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

Skip to content

Commit a8592fc

Browse files
committed
reverting text with dash fixes; see post on mailing list
svn path=/trunk/matplotlib/; revision=5697
1 parent 633ce72 commit a8592fc

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

lib/matplotlib/text.py

Lines changed: 4 additions & 6 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._x))
749-
y = float(self.convert_yunits(self._y))
748+
x = float(self.convert_xunits(self._dashx))
749+
y = float(self.convert_yunits(self._dashy))
750750
return x, y
751751

752752
def get_prop_tup(self):
@@ -939,17 +939,15 @@ def set_x(self, x):
939939
940940
ACCEPTS: float
941941
"""
942-
self._x = float(x)
943-
self._dashx = self._x
942+
self._dashx = float(x)
944943

945944
def set_y(self, y):
946945
"""
947946
Set the y position of the TextWithDash.
948947
949948
ACCEPTS: float
950949
"""
951-
self._y = float(y)
952-
self._dashy = self._y
950+
self._dashy = float(y)
953951

954952
def set_transform(self, t):
955953
"""

0 commit comments

Comments
 (0)