@@ -1838,9 +1838,12 @@ def transform(renderer) -> Transform
1838
1838
self ._arrow_relpos = arrowprops .pop ("relpos" , (0.5 , 0.5 ))
1839
1839
else :
1840
1840
# modified YAArrow API to be used with FancyArrowPatch
1841
- for key in [
1842
- 'width' , 'headwidth' , 'headlength' , 'shrink' , 'frac' ]:
1841
+ for key in ['width' , 'headwidth' , 'headlength' , 'shrink' ]:
1843
1842
arrowprops .pop (key , None )
1843
+ if 'frac' in arrowprops :
1844
+ _api .warn_deprecated (
1845
+ "3.8" , message = "Support for passing the (unused) 'frac' key "
1846
+ "has been removed %(since)s and will be removed %(removal)s." )
1844
1847
self .arrow_patch = FancyArrowPatch ((0 , 0 ), (1 , 1 ), ** arrowprops )
1845
1848
else :
1846
1849
self .arrow_patch = None
@@ -1933,10 +1936,6 @@ def update_positions(self, renderer):
1933
1936
shrink = arrowprops .get ('shrink' , 0.0 )
1934
1937
width = arrowprops .get ('width' , 4 )
1935
1938
headwidth = arrowprops .get ('headwidth' , 12 )
1936
- if 'frac' in arrowprops :
1937
- _api .warn_external (
1938
- "'frac' option in 'arrowprops' is no longer supported;"
1939
- " use 'headlength' to set the head length in points." )
1940
1939
headlength = arrowprops .get ('headlength' , 12 )
1941
1940
1942
1941
# NB: ms is in pts
0 commit comments