Skip to content

Commit 55448dd

Browse files
committed
Avoid duplicate keyword arg warnings
1 parent 4d25323 commit 55448dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

proplot/axes/plot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ def barh_wrapper(
17121712
def boxplot_wrapper(
17131713
self, func, *args,
17141714
color='k', fill=True, fillcolor=None, fillalpha=0.7,
1715-
lw=None, linewidth=0.7, orientation=None,
1715+
lw=None, linewidth=None, orientation=None,
17161716
marker=None, markersize=None,
17171717
boxcolor=None, boxlw=None,
17181718
capcolor=None, caplw=None,
@@ -1779,7 +1779,7 @@ def boxplot_wrapper(
17791779

17801780
# Modify results
17811781
# TODO: Pass props keyword args instead? Maybe does not matter.
1782-
lw = _not_none(lw=lw, linewidth=linewidth)
1782+
lw = _not_none(lw=lw, linewidth=linewidth, default=0.8)
17831783
if fillcolor is None:
17841784
cycler = next(self._get_lines.prop_cycler)
17851785
fillcolor = cycler.get('color', None)
@@ -1818,7 +1818,7 @@ def boxplot_wrapper(
18181818

18191819
def violinplot_wrapper(
18201820
self, func, *args,
1821-
lw=None, linewidth=0.7, fillcolor=None, edgecolor='k',
1821+
lw=None, linewidth=None, fillcolor=None, edgecolor='black',
18221822
fillalpha=0.7, orientation=None,
18231823
**kwargs
18241824
):
@@ -1841,7 +1841,7 @@ def violinplot_wrapper(
18411841
lw, linewidth : float, optional
18421842
The linewidth of the line objects. Default is ``1``.
18431843
edgecolor : color-spec, optional
1844-
The edge color for the violin patches. Default is ``'k'``.
1844+
The edge color for the violin patches. Default is ``'black'``.
18451845
fillcolor : color-spec, optional
18461846
The violin plot fill color. Default is the next color cycler color.
18471847
fillalpha : float, optional
@@ -1870,7 +1870,7 @@ def violinplot_wrapper(
18701870
)
18711871

18721872
# Sanitize input
1873-
lw = _not_none(lw=lw, linewidth=linewidth)
1873+
lw = _not_none(lw=lw, linewidth=linewidth, default=0.8)
18741874
if kwargs.pop('showextrema', None):
18751875
warnings._warn_proplot('Ignoring showextrema=True.')
18761876
if 'showmeans' in kwargs:

0 commit comments

Comments
 (0)