barplot_err¶
-
hhpy.plotting.
barplot_err
(x: str, y: str, xerr: str = None, yerr: str = None, data: pandas.core.frame.DataFrame = None, **kwargs) → matplotlib.axes._axes.Axes[source]¶ extension on seaborn barplot that allows for plotting errorbars with preprocessed data. The idea is based on this StackOverflow question
Parameters: - x – Name of the x variable in data
- y – Name of the y variable in data
- xerr – variable to use as x error bars [optional]
- yerr – variable to use as y error bars [optional]
- data – Pandas DataFrame containing named data
- kwargs –
other keyword arguments passed to seaborn barplot
Returns: The matplotlib.pyplot.Axes object with the plot on it