我正在嘗試使用箱數制作歷史圖。之后,我想在箱后繪制線圖,但我無法繪制線圖。我能得到一些幫助嗎?
plt.hist(df1_small['fz'], bins=[-5, -4.5, -4, -3.5, -3,-2.5,-2,-1.5,-1,-0.5,0, 0.5, 1,1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5])
sns.kdeplot(df1_small['fz'],fill=True, color = 'Red')
df1_small['fz'].plot(kind = "kde")
plt.xlabel('Distribution of fz of small particles')
plt.xlim(-5, 5)
plt.show()
這是我的代碼。我得到的情節是這樣的:

如果您注意到,線圖是一種僅在 0 中的直線。
如何在所有垃圾箱之后畫線?
資料在這里:
如果您嘗試覆寫 a 
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/452287.html
標籤:Python python-3.x matplotlib 海运 直方图
