Commit ba6347de by Jigyasa Watwani

added slope

parent 3813aeb9
Showing with 6 additions and 0 deletions
...@@ -109,6 +109,12 @@ plt.show() ...@@ -109,6 +109,12 @@ plt.show()
plt.plot(time_array, long_axis_array, marker='o', linestyle='None') plt.plot(time_array, long_axis_array, marker='o', linestyle='None')
plt.xlabel('Time (min)') plt.xlabel('Time (min)')
plt.ylabel('Long axis of the convex hull ($\mu m$)') plt.ylabel('Long axis of the convex hull ($\mu m$)')
coefficients = np.polyfit(time_array[25:-13], long_axis_array[25:-13], 1)
polyomial = np.poly1d(coefficients)
xline = time_array[25:-13]
yline = polyomial(xline)
plt.plot(xline, yline)
print(coefficients[0])
plt.show() plt.show()
plt.plot(time_array, area_array, marker='o', linestyle='None') plt.plot(time_array, area_array, marker='o', linestyle='None')
plt.xlabel('Time (min)') plt.xlabel('Time (min)')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment