I'm using the following code to graph a DF/F signal. I'm hoping to be able to calculate the area under the curve for y = ch1dff and any given x (downsamp_time) range as the limit. I can't seem to find ant code that allows for integration without a function. See plot
plt.figure(figsize=(10,5))
plt.plot(downsamp_time, ch1dff , color='g',label= '465 nm DF/F',)
plt.legend()
plt.xlim([2154, 2334])
markers = m
for marker in markers:
plt.axvline(x=marker,alpha = 0.2)