plt.hist绘制直方图

import matplotlib.pyplot as plt
x = pdf.loc[:, 'sway_intention']
plt.hist(x, bins=10, range=(0, 1), density=True, stacked=True, weights=None, cumulative=False, bottom=None, histtype=u'bar', align=u'mid', orientation=u'vertical', rwidth=0.6, log=False, color=None, label=None)

 

posted @ 2021-07-22 12:08  威威后花园  阅读(624)  评论(0编辑  收藏  举报