@@ -1681,10 +1681,10 @@ def _apply_lines(
1681
1681
# Parse input arguments
1682
1682
method = kwargs .pop ('_method' )
1683
1683
name = method .__name__
1684
- args = list (args )
1685
1684
colors = _not_none (color = color , colors = colors )
1686
1685
linestyles = _not_none (linestyle = linestyle , linestyles = linestyles )
1687
1686
linewidths = _not_none (lw = lw , linewidth = linewidth , linewidths = linewidths )
1687
+ args = list (args )
1688
1688
if len (args ) > 3 :
1689
1689
raise ValueError (f'Expected 1-3 positional args, got { len (args )} .' )
1690
1690
if len (args ) == 2 : # empty possible
@@ -1759,9 +1759,9 @@ def _apply_scatter(
1759
1759
"""
1760
1760
# Manage input arguments
1761
1761
method = kwargs .pop ('_method' )
1762
+ args = list (args )
1762
1763
if len (args ) > 4 :
1763
1764
raise ValueError (f'Expected 1-4 positional arguments, got { len (args )} .' )
1764
- args = list (args )
1765
1765
if len (args ) == 4 :
1766
1766
c = _not_none (c_positional = args .pop (- 1 ), c = c )
1767
1767
if len (args ) == 3 :
@@ -1861,10 +1861,10 @@ def _apply_fill_between(
1861
1861
name = method .__name__
1862
1862
sx = 'y' if 'x' in name else 'x' # i.e. fill_betweenx
1863
1863
sy = 'x' if sx == 'y' else 'y'
1864
- args = list (args )
1865
1864
stack = _not_none (stack = stack , stacked = stacked )
1866
1865
color = _not_none (color = color , facecolor = facecolor )
1867
1866
linewidth = _not_none (lw = lw , linewidth = linewidth , default = 0 )
1867
+ args = list (args )
1868
1868
if len (args ) > 4 :
1869
1869
raise ValueError (f'Expected 1-4 positional args, got { len (args )} .' )
1870
1870
if len (args ) == 4 :
@@ -1988,6 +1988,7 @@ def _apply_bar(
1988
1988
color = _not_none (color = color , facecolor = facecolor )
1989
1989
linewidth = _not_none (lw = lw , linewidth = linewidth , default = rc ['patch.linewidth' ])
1990
1990
kwargs .update ({'linewidth' : linewidth , 'edgecolor' : edgecolor })
1991
+ args = list (args )
1991
1992
if len (args ) > 4 :
1992
1993
raise ValueError (f'Expected 1-4 positional args, got { len (args )} .' )
1993
1994
if len (args ) == 4 and stack :
@@ -2631,7 +2632,7 @@ def apply_cycle(
2631
2632
# Parse input arguments
2632
2633
# NOTE: Requires standardize_1d wrapper before reaching this.
2633
2634
method = kwargs .pop ('_method' )
2634
- errobjs = kwargs .pop ('_errobjs' )
2635
+ errobjs = kwargs .pop ('_errobjs' , None )
2635
2636
name = method .__name__
2636
2637
plot = name in ('plot' ,)
2637
2638
scatter = name in ('scatter' ,)
0 commit comments