violinplot_extras¶
- violinplot_extras(self, *args, fillcolor=None, fillalpha=None, lw=None, linewidth=None, color=None, edgecolor=None, **kwargs)[source]¶
Adds convenient keyword arguments and changes the default violinplot style to match this matplotlib example. It is also no longer possible to show minima and maxima with whiskers – while this is useful for
boxplot
s it is redundant forviolinplot
s.Important
This function wraps
violinplot
.- Parameters
*args (1D or 2D ndarray) – The data array.
vert (bool, optional) – If
False
, violin plots are drawn horizontally. Otherwise, violin plots are drawn vertically.orientation ({{None, ‘vertical’, ‘horizontal’}}, optional) – Alternative to the native
vert
keyword arg. Added for consistency with the rest of matplotlib.fillcolor (color-spec, list, optional) – The violin plot fill color. Default is the next color cycler color. If a list, it should be the same length as the number of objects.
fillalpha (float, optional) – The opacity of the violins. Default is
0.7
. If a list, it should be the same length as the number of objects.lw, linewidth (float, optional) – The linewidth of the line objects. Default is
0.8
.color, edgecolor (color-spec, list, optional) – The edge color for the violin patches. Default is
'black'
. If a list, it should be the same length as the number of objects.
- Other Parameters
**kwargs – Passed to
violinplot
.