@@ -1838,9 +1838,12 @@ def transform(renderer) -> Transform
18381838 self ._arrow_relpos = arrowprops .pop ("relpos" , (0.5 , 0.5 ))
18391839 else :
18401840 # 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' ]:
18431842 arrowprops .pop (key , None )
1843+ if 'frac' in arrowprops :
1844+ _api .warn_deprecated (
1845+ "3.8" , name = "the (unused) 'frac' key in 'arrowprops'" )
1846+ arrowprops .pop ("frac" )
18441847 self .arrow_patch = FancyArrowPatch ((0 , 0 ), (1 , 1 ), ** arrowprops )
18451848 else :
18461849 self .arrow_patch = None
@@ -1933,10 +1936,6 @@ def update_positions(self, renderer):
19331936 shrink = arrowprops .get ('shrink' , 0.0 )
19341937 width = arrowprops .get ('width' , 4 )
19351938 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." )
19401939 headlength = arrowprops .get ('headlength' , 12 )
19411940
19421941 # NB: ms is in pts
0 commit comments