Caixa de preenchimento de boxplot de matplotlib com padrão
import numpy as np
import matplotlib.pyplot as plt
# fake up some data
spread= np.random.rand(50) * 100
center = np.ones(25) * 50
flier_high = np.random.rand(10) * 100 + 100
flier_low = np.random.rand(10) * -100
data = np.concatenate((spread, center, flier_high, flier_low), 0)
# basic plot
bp = plt.boxplot(data, patch_artist=True)
for box in bp['boxes']:
# change outline color
box.set(color='red', linewidth=2)
# change fill color
box.set(facecolor = 'green' )
# change hatch
box.set(hatch = '/')
plt.show()
Real Raccoon