neuralib.plot.plot.violin_boxplot

neuralib.plot.plot.violin_boxplot(ax, data, x=None, y=None, hue=None, scatter_alpha=0.7, scatter_size=3, output=None, **kwargs)[source]

Plot the data with half violin together with boxes and scatters

Parameters:
  • ax (Axes) – Axes

  • data (pd.DataFrame | pl.DataFrame | dict | list[ndarray]) – Dataset for plotting

  • x (str | None) – Names of variables in data or vector data: x

  • y (str | None) – Names of variables in data or vector data: y

  • hue (str | None) – Names of variables in data or vector data: hue

  • scatter_alpha (float) – Scatter alpha for the sns.stripplot()

  • scatter_size (float) – Scatter size for the sns.stripplot()

  • output (str | Path | PathLike[str] | None) – Fig save output path

  • kwargs – Common args pass through sns.violinplot(), sns.boxplot() and sns.stripplot()

Returns:

Return type:

None