Matplotlib - 箱线图、箱型图 boxplot () 所有用法详解_python绘制箱线图_黄饱饱_bao的博客-CSDN博客
数据分析—用excel2016和python画箱线图_千语_肉丸子的博客-CSDN博客
pyplot — Matplotlib 2.0.2 documentation
# demonstrate how to customize the display different elements:
boxprops = dict(linestyle='-', linewidth=4, color='k')
medianprops = dict(linestyle='-', linewidth=4, color='k')
ax = df.boxplot(column=['V1'],
by=df.index.get_level_values('datetime').year,
showfliers=False, showmeans=True,
boxprops=boxprops,
medianprops=medianprops)
# get rid of the automatic title
plt.suptitle("")
ax.set_xlabel("")
ax.set_title("Boxplot of V1")