freq axis ticks

This commit is contained in:
Santiago Martinez 2023-04-07 15:46:18 -06:00
parent 85092e846b
commit 0f97d51086

View File

@ -95,7 +95,7 @@ def spectrogram(
ax.set_ylabel("Frequency (kHz)")
def y_fmt(x, _):
return f"{x / 1000:d}"
return f"{x / 1000:.0f}"
ax.yaxis.set_major_formatter(tick.FuncFormatter(y_fmt))