neuro_morpho.reports.plots
Functions
|
Make the pseudo box plot that sabya uses. |
Module Contents
- neuro_morpho.reports.plots.plot_sabya(data: pandas.DataFrame, ax: matplotlib.pyplot.Axes | None = None, fig_kw: dict = {}, bar_width: float = 0.5, ax_ylabel: str = '') matplotlib.pyplot.Figure[source]
Make the pseudo box plot that sabya uses.
Trying to emulate the plots generated using: https://github.com/raacampbell/notBoxPlot
From the README:
his function (with a tongue in cheek name) addresses this problem. The use of the mean instead of the median and the SEM and SD instead of quartiles and whiskers are deliberate. Jittered raw data are plotted for each group. Also shown are the mean, and 95% confidence intervals for the mean.
- Parameters:
data (pd.DataFrame) – The data to plot
ax (plt.Axes, optional) – The axes to plot on. Defaults to None.
fig_kw (dict, optional) – The figure keyword arguments. Defaults to {}.
bar_width (float, optional) – The width of the bars. Defaults to 0.5.
ax_ylabel (str, optional) – The y-axis label. Defaults to “”.
- Returns:
The figure object
- Return type:
plt.Figure