Line of best fit not accurate in Python

后端 未结 0 1495
萌比男神i
萌比男神i 2021-02-05 02:43

I am trying to create a line of best fit for a small scatter plot. Right now I am using

m,b = np.polyfit(xArray, yArray, 1)
xValues = np.linspace(-8,2,50)

plt.sc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题