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()