pyeeg.vizu.pairwise_boxplots

pyeeg.vizu.pairwise_boxplots(arr1, arr2, labels=['1', '2'], ax=None, linealpha=0.5, boxalpha=0.5, add_signi=False)

Plot two boxplot of supplied series with small lines indicating pairwise change between the two series.

Parameters:
  • arr1 (1darray) – First series.

  • arr2 (1darray) – Second series.

  • labels (list[str]) – Xticklabels. The default is [‘1’, ‘2’].

  • ax (matplotlib.axes.Axes, optional) – Axis on which to plot. If None (default), a new figure is created.

  • linealpha (float) – Alpha (transparency) of the pairwise connecting lines. Defaults to 0.5.

  • boxalpha (float) – Alpha (transparency) of the boxplot patches. Defaults to 0.5.

  • add_signi (bool) – Whether to overlay a significance bracket computed with a paired t-test. Defaults to False.

Returns:

b1 and b2 boxplot dictionaries merged together, and the lines object of the pairwise connecting lines.

Return type:

Boxes, lines