Changed my plot function
This commit is contained in:
parent
6e54a8c508
commit
b0d5d5ccfb
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user