@@ -187,7 +187,7 @@ def _get_layout(self, renderer):
187
187
188
188
xmin , ymin = thisx , thisy
189
189
lines = self ._text .split ('\n ' )
190
-
190
+
191
191
whs = []
192
192
# Find full vertical extent of font,
193
193
# including ascenders and descenders:
@@ -1025,7 +1025,7 @@ def __init__(self, s, xy,
1025
1025
'axes pixels' : pixels from lower left corner of axes
1026
1026
'axes fraction' : 0,1 is lower left of axes and 1,1 is upper right
1027
1027
'data' : use the coordinate system of the object being annotated (default)
1028
- 'data offset' : Specify an offset (in points) from the xy value
1028
+ 'offset points ' : Specify an offset (in points) from the xy value
1029
1029
'polar' : you can specify theta, r for the annotation, even
1030
1030
in cartesian plots. Note that if you
1031
1031
are using a polar axes, you do not need
@@ -1081,12 +1081,12 @@ def _get_xy(self, x, y, s):
1081
1081
x = float (self .convert_xunits (x ))
1082
1082
y = float (self .convert_yunits (y ))
1083
1083
return trans .xy_tup ((x ,y ))
1084
- elif s == 'data offset' :
1084
+ elif s == 'offset points ' :
1085
1085
# convert the data point
1086
1086
dx , dy = self .xy
1087
1087
1088
1088
# prevent recursion
1089
- if self .xycoords == 'data offset' :
1089
+ if self .xycoords == 'offset points ' :
1090
1090
return self ._get_xy (dx , dy , 'data' )
1091
1091
1092
1092
dx , dy = self ._get_xy (dx , dy , self .xycoords )
0 commit comments