Multiple peaks in a same signal? I am working on peak detection in different signals, the signal plot looks like this:

After applying peak detection algorithm and tuning it for each signal, final output looks like this:

As you can see in figure 3 and figure 4, there are more than 2 peaks in a single point, for example in figure 3 there are two peaks from time 0.4 to 0.5 and 0.3 to 0.35 also two peaks. I am quite new in DSP, I wanted to confirm, is it ok to showcase this diagram, the algorithm is detecting the peaks correctly or should I show only one peak in figure 3 from 0.3 to 0.35 and 0.4 to 0.5 like below diagram?

Thanks!
is it ok to showcase this diagram ?

Sorry, we can't tell you this. This is really a function of your specific application, the physics behind your signal, and how you exactly define &quot;peak&quot;.
DSP can offer you methods to suppress &quot;near by&quot; peaks or to de-noise multiple peaks but whether that's the right thing to do or not depends largely on what do want to do with the results and what else you already know about the signal.