Skip to content

Commit b5caf55

Browse files
committed
Add 'filled' keyword to boxplot, consistent with hist
1 parent 4a85773 commit b5caf55

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

proplot/axes/plot.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3337,10 +3337,8 @@ def pie(self, x, explode, *, labelpad=None, labeldistance=None, **kwargs):
33373337
return obj
33383338

33393339
def _apply_boxplot(
3340-
self, x, y, *,
3341-
mean=None, means=None, vert=True,
3342-
fill=None, marker=None, markersize=None,
3343-
**kwargs
3340+
self, x, y, *, mean=None, means=None, vert=True,
3341+
fill=None, filled=None, marker=None, markersize=None, **kwargs
33443342
):
33453343
"""
33463344
Apply the box plot.
@@ -3352,11 +3350,12 @@ def _apply_boxplot(
33523350
edgecolor = kw.pop('edgecolor', 'black')
33533351
fillcolor = kw.pop('facecolor', None)
33543352
fillalpha = kw.pop('alpha', None)
3355-
fill = fill is True or fillcolor is not None or fillalpha is not None
3353+
fill = _not_none(fill=fill, filled=filled)
3354+
fill = fill or fillcolor is not None or fillalpha is not None
3355+
fillalpha = _not_none(fillalpha, 1)
33563356
if fill and fillcolor is None: # TODO: support e.g. 'facecolor' cycle?
33573357
parser = self._get_patches_for_fill
33583358
fillcolor = parser.get_next_color()
3359-
fillalpha = _not_none(fillalpha, 1)
33603359

33613360
# Arist-specific properties
33623361
# NOTE: Output dict keys are plural but we use singular for keyword args

0 commit comments

Comments
 (0)