dont remember

This commit is contained in:
Diana 2024-10-27 12:36:32 +01:00
parent 904fa5cf30
commit 09a86f5d6f

View File

@ -79,7 +79,7 @@ def float_formatter(x, _):
return f'{x:.5f}'
def plot_highlighted_integrals(ax, frequency, power, points, color_mapping, points_categories, delta=2.5):
def plot_highlighted_integrals(ax, frequency, power, points, nyquist, true_eodf, color_mapping, points_categories, delta=2.5):
"""
Highlights integrals on the existing axes of the power spectrum for a given dataset.
@ -104,8 +104,6 @@ def plot_highlighted_integrals(ax, frequency, power, points, color_mapping, poin
-------
None
"""
_, _, _, df, eodf, nyquist, stim_freq = u.sam_data(sam)
AM = u.find_AM(eodf, nyquist, stim_freq)
# Plot the power spectrum on the provided axes
ax.plot(frequency, power, color="k")
@ -128,6 +126,7 @@ def plot_highlighted_integrals(ax, frequency, power, points, color_mapping, poin
ax.set_xlim([0, 1200])
ax.set_ylim([0, 6e-5])
ax.axvline(nyquist, color = "k", linestyle = "--")
ax.axvline(true_eodf, color = "k", linestyle = "--")
ax.set_xlabel('Frequency (Hz)')
ax.set_ylabel('Power')
ax.set_title('Power Spectrum with Highlighted Integrals')