nispace.plotting.print_significance

nispace.plotting.print_significance(ax, p_values, q_values=None, coloc_values=None, mode=True, mc_method=None, symbols=('☆', '★'), symbol_size=12, text_size=8, pad_frac=0.02, bold_labels=True, categorical_axis='y')[source]

Annotate a categorical axis plot with significance markers or p-value text.

Parameters:
  • mode (True / "stars" / "text" / "both" / False) – True/”stars”: draw ☆/★ symbols. “text”: draw numeric p-value. “both”: both.

  • mc_method (str or None) – Name of the MC correction method, used for legend labels.

Returns:

(handles, labels)

Return type:

lists for legend integration.