From b0d5d5ccfbdbf352dfe7cca9e599d35f2778718b Mon Sep 17 00:00:00 2001 From: Diana Date: Thu, 24 Oct 2024 10:21:15 +0200 Subject: [PATCH] Changed my plot function --- code/plot_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/plot_functions.py b/code/plot_functions.py index f8ea237..78cfcea 100644 --- a/code/plot_functions.py +++ b/code/plot_functions.py @@ -114,7 +114,7 @@ def plot_highlighted_integrals(frequency, power, points, color_mapping, points_c ax.axvspan(point - delta, point + delta, color=color, alpha=0.3, label=f'{point:.2f} Hz') # Print out point and color - print(f"Integral around {point:.2f} Hz: {integral:.5e}, Color: {color}") + print(f"{points_categories}: {integral:.5e}, Color: {color}") # Annotate the plot with the point and its color ax.text(point, max(power) * 0.9, f'{point:.2f}', color=color, fontsize=10, ha='center')