1import matplotlib.pyplot as plt
2import seaborn as sns
3
4x = ["G","F","E","D","C","B"]
5y = [3,14,45,47,34,15]
6
7data = []
8for i, yi in enumerate(y):
9 data.extend([i]*yi)
10
11sns.violinplot(y=data)
12plt.yticks(range(len(x)), x)
13plt.show()