import math


def star_symbol(p):
	"""Significance symbol under violin plot"""
	if p > 0.05:
		return "ns"
	else:
		l = -math.log10(p)
		nstar = math.floor(l)
		if nstar > 4:
			nstar = 4
		return "*"*nstar