spiketools.plts.data.plot_bar

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

Plot data in a bar graph.

Parameters:
datalist 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.