Changed my plot function

This commit is contained in:
Diana 2024-10-24 10:21:15 +02:00
parent 6e54a8c508
commit b0d5d5ccfb

View File

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