shellplot.barh
- shellplot.barh(x, labels=None, fig=None, **kwargs)[source]
Plot horizontal bars
- Parameters
x (array-like) – The width of the horizontal bars. Should be 1d np.ndarray or pandas series.
labels (array-like) – Array that is used to label the bars. Needs to have the same dim as x.
fig (shellplot.figure.Figure, optional, default None) – If provided, plot will be attached to figure. Otherwise, a new figure is created for the plot
return_type (str, optional) – If ‘str’, returns the plot as a string. Otherwise, the plot will be directly printed to stdout.
**kwargs – Additional parameters passed to shellplot.figure (Only used if the fig keyword is None)
- Returns
See notes, dependent on return_type
- Return type
result