barh_wrapper¶
- barh_wrapper(self, func, y=None, right=None, width=0.8, left=None, **kwargs)[source]¶
Supports grouping and stacking successive columns of data, and changes the default bar style.
Note
This function wraps
barh
.- Parameters
y, right, width, left (float or list of float, optional) – The dimensions of the bars. If the y coordinates are not provided, they are set to
np.arange(0, len(height))
. Note that the units forwidth
are now relative.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.
negpos (bool, optional) – Whether to shade bars greater than zero with
poscolor
and bars less than zero withnegcolor
.negcolor, poscolor (color-spec, optional) – Colors to use for the negative and positive bars. Ignored if
negpos
isFalse
. Defaults arerc.negcolor
='blue7'
andrc.poscolor
='red7'
.lw, linewidth (float, optional) – The edge width for the bar patches.
edgecolor (color-spec, optional) – The edge color for the bar patches.
- Other Parameters
**kwargs – Passed to
barh
.