data = [data, d2, d2[::2, (0)]]
figure()
bp_dict = boxplot(data, vert=False)
for line in bp_dict['medians']:
    x, y = line.get_xydata()[1]
text(x, y, '%.1f' % x, horizontalalignment='center')
for line in bp_dict['boxes']:
    x, y = line.get_xydata()[0]
text(x, y, '%.1f' % x, horizontalalignment='center', verticalalignment='top')
x, y = line.get_xydata()[3]
text(x, y, '%.1f' % x, horizontalalignment='center', verticalalignment='top')
show()
Наложение числового значения медианы/дисперсии на ящичных диаграммах