Compare commits
No commits in common. "478ac448254d31ae38b1f80949ec27acd44b6ae5" and "fbc19df6fbcd593d19b69134a65fd84c1bfc01ad" have entirely different histories.
478ac44825
...
fbc19df6fb
|
|
@ -102,14 +102,13 @@ def view_annotations(
|
|||
]
|
||||
ax.legend(handles=legend_elements, loc="upper right", framealpha=0.2)
|
||||
|
||||
ax.set_title(title, fontsize=title_fontsize, pad=14)
|
||||
ax.set_title(title, fontsize=title_fontsize, pad=20)
|
||||
ax.set_xlabel("Time (s)", fontsize=12)
|
||||
ax.set_ylabel("Frequency (MHz)", fontsize=12)
|
||||
ax.yaxis.set_major_formatter(ticker.FuncFormatter(lambda y, _: f"{y / 1e6:.1f}"))
|
||||
ax.set_ylabel("Frequency (Hz)", fontsize=12)
|
||||
ax.grid(alpha=0.1)
|
||||
|
||||
output_path, _ = set_path(output_path=output_path)
|
||||
plt.savefig(output_path, dpi=dpi, bbox_inches="tight", pad_inches=0.2)
|
||||
plt.savefig(output_path, dpi=dpi, bbox_inches="tight")
|
||||
plt.close(fig)
|
||||
print(f"Professional annotation plot saved to {output_path}")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user