I have a txt file that contains x and y points. I plot the graph using matplotlib.
My graph plot looks something like
....
graph=path+'/profile.txt'
x, y = loadtxt(graph, unpack=True)
ax.plot(x,y)
....
As it can be noticed that from 2 in the x-direction, there are small bubbles. I want to count the number of bubbles and measure the maximum height (in the y-direction) for each bubble.
The gap between the bubbles is a straight line along the x-axis.
My line is not continuous as seen below
My profile text file - https://www.dropbox.com/s/oc8vjctc5vt2xfp/profile.txt?dl=0
[profile.txt][3]
Any guidance is appreciated.