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')