Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f204c0

Browse files
authored
Merge pull request #20571 from anntzer/anglenone
Switch default ArrowStyle angle values from None to zero.
2 parents 1a16d18 + 8ef1af7 commit 1f204c0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/patches.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3475,7 +3475,7 @@ def __init__(self, widthA=1., lengthA=0.2, angleA=0):
34753475
class BracketB(_Bracket):
34763476
"""An arrow with an outward square bracket at its end."""
34773477

3478-
def __init__(self, widthB=1., lengthB=0.2, angleB=None):
3478+
def __init__(self, widthB=1., lengthB=0.2, angleB=0):
34793479
"""
34803480
Parameters
34813481
----------
@@ -3516,9 +3516,7 @@ def __init__(self,
35163516
class BarAB(_Bracket):
35173517
"""An arrow with vertical bars ``|`` at both ends."""
35183518

3519-
def __init__(self,
3520-
widthA=1., angleA=None,
3521-
widthB=1., angleB=None):
3519+
def __init__(self, widthA=1., angleA=0, widthB=1., angleB=0):
35223520
"""
35233521
Parameters
35243522
----------

0 commit comments

Comments
 (0)