spiketools.plts.data.plot_barh

spiketools.plts.data.plot_barh(data, labels=None, add_text=False, ax=None, **plt_kwargs)[source]

Plot a horizontal bar plot.

Parameters:
datalist or array of float

Data to plot.

labelslist of str, optional

Labels for the bar plot.

add_textbool, optional, default: False

Whether to annotate the bars with text showing their numerical values.

axAxes, optional

Axis object upon which to plot.

plt_kwargs

Additional arguments to pass into the plot function.