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

Skip to content

Commit 633ce72

Browse files
committed
Fixed tick positioning bug
svn path=/trunk/matplotlib/; revision=5696
1 parent c3c1a2c commit 633ce72

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-06-27 Fixed tick positioning bug - MM
2+
13
2008-06-27 Fix dashed text bug where text was at the wrong end of the
24
dash - MGD
35

lib/matplotlib/text.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,15 +939,17 @@ def set_x(self, x):
939939
940940
ACCEPTS: float
941941
"""
942-
self._dashx = float(x)
942+
self._x = float(x)
943+
self._dashx = self._x
943944

944945
def set_y(self, y):
945946
"""
946947
Set the y position of the TextWithDash.
947948
948949
ACCEPTS: float
949950
"""
950-
self._dashy = float(y)
951+
self._y = float(y)
952+
self._dashy = self._y
951953

952954
def set_transform(self, t):
953955
"""

0 commit comments

Comments
 (0)