Skip to content

Commit

Permalink
better sync of the peaks pair for close frequencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Frix-x committed Jun 30, 2024
1 parent 92a651b commit 8cf81bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaketune/graph_creators/belts_graph_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def plot_versus_belts(
freq1 = signal1.freqs[peak1[0]]
freq2 = signal2.freqs[peak2[0]]

if freq1 == freq2:
if abs(freq1 - freq2) < 1:
ax.plot(signal1.psd[peak1[0]], signal2.psd[peak2[0]], marker='o', color='black', markersize=7)
ax.annotate(
f'{label}1/{label}2',
Expand Down

0 comments on commit 8cf81bc

Please sign in to comment.