spiketools.plts.data.plot_bar¶
- spiketools.plts.data.plot_bar(data, labels=None, add_text=False, hline=None, hline_kwargs=None, 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.
- hlinefloat, optional
Horizontal line to add to the plot.
- hline_kwargsdict, optional
Keyword arguments for drawing the horizontal line.
- axAxes, optional
Axis object upon which to plot.
- plt_kwargs
Additional arguments to pass into the plot function.