Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

matplotlib - slope of the linear part with matplot.lib python

I'm struggling with finding the linear part of my graph, the code I've written to make the graph is bellow

#importing data essai 1
data3=pd.read_csv("data2.csv")
x3=data3.deplacement
y3=data3.force

plt.plot(x3,y3, 'g')
plt.xlabel("déplacement (mm)")
plt.ylabel("effort (N)")
plt.title('force en focntion de deplacement')
plt.legend()
plt.show()

enter image description here

please how can I calculate the slope at the origin?

Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...