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

Skip to content

Commit f682729

Browse files
committed
revocer the negative coordinates support of annotation
svn path=/branches/v1_0_maint/; revision=8846
1 parent d8ee424 commit f682729

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/text.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,9 @@ def _get_xy(self, renderer, x, y, s):
14431443
y = float(self.convert_yunits(y))
14441444

14451445

1446+
if s in ['axes points', 'axes pixel', 'figure points', 'figure pixel']:
1447+
return self._get_xy_legacy(renderer, x, y, s)
1448+
14461449
tr = self._get_xy_transform(renderer, s)
14471450
x1, y1 = tr.transform_point((x, y))
14481451
return x1, y1

0 commit comments

Comments
 (0)