@@ -2051,8 +2051,6 @@ def __init__(self, s, xy,
2051
2051
2052
2052
self .arrowprops = arrowprops
2053
2053
2054
- self .arrow = None
2055
-
2056
2054
if arrowprops is not None :
2057
2055
if "arrowstyle" in arrowprops :
2058
2056
arrowprops = self .arrowprops .copy ()
@@ -2072,9 +2070,6 @@ def __init__(self, s, xy,
2072
2070
2073
2071
def contains (self , event ):
2074
2072
contains , tinfo = Text .contains (self , event )
2075
- if self .arrow is not None :
2076
- in_arrow , _ = self .arrow .contains (event )
2077
- contains = contains or in_arrow
2078
2073
if self .arrow_patch is not None :
2079
2074
in_patch , _ = self .arrow_patch .contains (event )
2080
2075
contains = contains or in_patch
@@ -2098,9 +2093,6 @@ def anncoords(self, coords):
2098
2093
self ._textcoords = coords
2099
2094
2100
2095
def set_figure (self , fig ):
2101
-
2102
- if self .arrow is not None :
2103
- self .arrow .set_figure (fig )
2104
2096
if self .arrow_patch is not None :
2105
2097
self .arrow_patch .set_figure (fig )
2106
2098
Artist .set_figure (self , fig )
@@ -2257,18 +2249,19 @@ def get_window_extent(self, renderer=None):
2257
2249
'''
2258
2250
if not self .get_visible ():
2259
2251
return Bbox .unit ()
2260
- arrow = self .arrow
2261
- arrow_patch = self .arrow_patch
2262
2252
2263
2253
text_bbox = Text .get_window_extent (self , renderer = renderer )
2264
2254
bboxes = [text_bbox ]
2265
2255
2266
- if self .arrow is not None :
2267
- bboxes .append (arrow .get_window_extent (renderer = renderer ))
2268
- elif self .arrow_patch is not None :
2269
- bboxes .append (arrow_patch .get_window_extent (renderer = renderer ))
2256
+ if self .arrow_patch is not None :
2257
+ bboxes .append (
2258
+ self .arrow_patch .get_window_extent (renderer = renderer ))
2270
2259
2271
2260
return Bbox .union (bboxes )
2272
2261
2262
+ arrow = property (
2263
+ fget = cbook .deprecated ("3.0" )(lambda self : None ),
2264
+ fset = cbook .deprecated ("3.0" )(lambda self , value : None ))
2265
+
2273
2266
2274
2267
docstring .interpd .update (Annotation = Annotation .__init__ .__doc__ )
0 commit comments