... 標籤plt.ylim([0,5000]) # 設置Y軸的刻度範圍for x,y in enumerate(times): plt.text(x,y+100,'%s' %round(y,1),ha='center') # 為每個橫條圖添加數值標籤In [11]: ...
確定! 回上一頁