matplotlib —— step、bar、stem、errorbar、hist 圖形的繪製

1. plt.step() 與 plt.bar() plt.bar(range(1, len(x)), x, alpha=.4, align=‘center’, label=‘individual’) plt.step(range(1, 14), np.cumsum(x), where=‘mid’, label=‘cumsum’) x = [ 4.8923083 2.46635032 1.4
相關文章
相關標籤/搜索