pyeeg.vizu
.significance_overlay
- pyeeg.vizu.significance_overlay(pval, edges, height=None, color='k', yerr=None, dh=0.05, barh=0.05, fontsize=None, maxasterix=None, ax=None)
Annotate barplot (preferably, but any type really) with p-values.
- Parameters:
pval (string to write or p-value for generating asterixes)
edges (data edge the bar)
height (height)
yerr (yerrs of all bars)
dh (height offset over bar / bar + yerr in axes coordinates (0 to 1))
barh (bar height in axes coordinates (0 to 1))
fontsize (font size)
maxasterix (maximum number of asterixes to write (for very small p-values))
- Returns:
ax – Axis used.
- Return type:
plt.Axes