📜  python boxplot show mean - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.995000             🧑  作者: Mango

代码示例1
import matplotlib.pyplot as plt
import numpy as np

data_to_plot = np.random.rand(100,5)

fig = plt.figure(1, figsize=(9, 6))
ax = fig.add_subplot(111)    
bp = ax.boxplot(data_to_plot, showmeans=True)

plt.show()