spiketools.plts.annotate.color_pvalue

spiketools.plts.annotate.color_pvalue(p_value, alpha=0.05, significant_color='red', null_color='black')[source]

Select a color based on the significance of a p-value.

Parameters:
p_valuefloat

The p-value to check.

alphafloat, optional, default: 0.05

The significance level to check against.

signicant_colorstr, optional, default: ‘red’

The color for if the p-value is significant.

null_colorstr, optional, default: ‘black’

The color for if the p-value is not significant.

Returns:
colorstr

Color value, reflecting the significance of the given p-value.