From 8ef1af7fb741a14a09be9b64096873f3b665fecd Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 4 Jul 2021 19:07:42 +0200 Subject: [PATCH] Switch default ArrowStyle angle values from None to zero. ... which are synonymous, but zero is more explicit (and also consistent with BracketA and BracketAB). (None is still supported as input, so there's no backompat break.) --- lib/matplotlib/patches.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 91f7bbee37f2..79a31897901f 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -3475,7 +3475,7 @@ def __init__(self, widthA=1., lengthA=0.2, angleA=0): class BracketB(_Bracket): """An arrow with an outward square bracket at its end.""" - def __init__(self, widthB=1., lengthB=0.2, angleB=None): + def __init__(self, widthB=1., lengthB=0.2, angleB=0): """ Parameters ---------- @@ -3516,9 +3516,7 @@ def __init__(self, class BarAB(_Bracket): """An arrow with vertical bars ``|`` at both ends.""" - def __init__(self, - widthA=1., angleA=None, - widthB=1., angleB=None): + def __init__(self, widthA=1., angleA=0, widthB=1., angleB=0): """ Parameters ----------