1. 多特征对比直方图
import seaborn as sns
import matplotlib.pyplot as plt
plt.figure(figsize=(12,6)) # 设置尺寸
n,bins,patches = plt.hist(data1,bins='auto',density=True, label='before_avg')
n2,bins2,patches2 = plt.hist(data2,bins='auto',density=True, label='pay_avg')
n3,bins3,patches3 = plt.hist(data3,bins='auto',density=True, label='smallpay_avg')
plt.legend(loc="upper right")
plt.xlabel('pvp avg times')
plt.title('PVP Attack')
plt.xlim(0, 40)
plt.show()