Skip to content

Commit ca0ec7e

Browse files
committed
fixed a unit problem with annotations
svn path=/trunk/matplotlib/; revision=3952
1 parent 90c0083 commit ca0ec7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/text.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,8 @@ def set_clip_box(self, clipbox):
10771077
def _get_xy(self, x, y, s):
10781078
if s=='data':
10791079
trans = self.axes.transData
1080+
x = float(self.convert_xunits(x))
1081+
y = float(self.convert_yunits(y))
10801082
return trans.xy_tup((x,y))
10811083
elif s=='polar':
10821084
theta, r = x, y

0 commit comments

Comments
 (0)