bar_wrapper¶
-
bar_wrapper
(self, func, x=None, height=None, width=0.8, bottom=None, *, left=None, vert=None, orientation='vertical', stacked=False, lw=None, linewidth=0.7, edgecolor='k', **kwargs)[source]¶ Wraps
bar
, permits bar stacking and bar grouping.- Parameters
x, height, width, bottom (float or list of float, optional) – The dimensions of the bars. If the x coordinates are not provided, they are set to
np.arange(0, len(height))
.orientation ({‘vertical’, ‘horizontal’}, optional) – The orientation of the bars.
vert (bool, optional) – Alternative to the
orientation
keyword arg. IfFalse
, horizontal bars are drawn. This is for consistency withboxplot
andviolinplot
.stacked (bool, optional) – Whether to stack columns of input data, or plot the bars side-by-side.
edgecolor (color-spec, optional) – The edge color for the bar patches.
lw, linewidth (float, optional) – The edge width for the bar patches.