A = np.genfromtxt('file.txt')
B = np.diff(A)
gap = B.max()
The idea here is to use the diff function, since your data is sequentially sampled.
--------------
END SOLUTION:
Thanks for your help.
The way I ended up solving this problem involves filtering the data with respect to the peak value and then finding the max() of the np.diff(). This avoids unwanted diff values that occur at earlier frequencies.
i.e.
peakF = x0[np.argmax(y0)]
xR = x0[(x0<peakF+0.001E9)&(x0>peakF-0.0023E9)]
yR = y0[(x0<peakF+0.001E9)&(x0>peakF-0.0023E9)]
diff = np.diff(yR)
bifurWidth = max(diff)
The range in which I look for bifurcation then is shown in green.
