if bp:
    ax.boxplot(data, notch=1, positions=pos, vert=1)
if __name__ == '__main__':
    pos = list(range(5))
data = [normal(size=100) for i in pos]
fig = figure()
ax = fig.add_subplot(111)
violin_plot(ax, data, pos, bp=1)
data_x = [0, 1, 2, 2, 3, 4]
data_y = [1.5, 1.0, 0.7, 2.5, 1, 1.5]
ax.plot(data_x, data_y, 'or')
fig.savefig('violins.gif')
Нанесение отдельных точек на график