Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 633ce72 commit a8592fcCopy full SHA for a8592fc
1 file changed
lib/matplotlib/text.py
@@ -745,8 +745,8 @@ def __init__(self,
745
746
def get_position(self):
747
"Return x, y as tuple"
748
- x = float(self.convert_xunits(self._x))
749
- y = float(self.convert_yunits(self._y))
+ x = float(self.convert_xunits(self._dashx))
+ y = float(self.convert_yunits(self._dashy))
750
return x, y
751
752
def get_prop_tup(self):
@@ -939,17 +939,15 @@ def set_x(self, x):
939
940
ACCEPTS: float
941
"""
942
- self._x = float(x)
943
- self._dashx = self._x
+ self._dashx = float(x)
944
945
def set_y(self, y):
946
947
Set the y position of the TextWithDash.
948
949
950
951
- self._y = float(y)
952
- self._dashy = self._y
+ self._dashy = float(y)
953
954
def set_transform(self, t):
955
0 commit comments