I am trying to generate a velocity signal from acceleration data in an array acc, I have also time another array with the same length in numpy.
import numpy as np
import matplotlib.pyplot as plt
from scipy import integrate
time = np.array([ , , ... , , ])
acc = np.array([ , , ... , , ])
# using this
vel=integrate.cumtrapz(acc,time,initial=0)

With some basic calculus it is obvious that the solution should be a similar plot, but for some reason I get these
Is there any suggestions?, maybe it is because the initial conditions but I'm not sure, and also I do not have access to them, since it is experimental data.
I also take the same data and put it on LabVIEW and the integration does this image of velocity.

but clearly it is not the same with the plt.plot(time,vel).