Answers for "python boxplot show mean"

0

python boxplot show mean

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()
Posted by: Guest on August-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language