From 0f97d51086ce9fc4895f07a93b034f2a5ea76b64 Mon Sep 17 00:00:00 2001 From: Santiago Martinez Date: Fri, 7 Apr 2023 15:46:18 -0600 Subject: [PATCH] freq axis ticks --- batdetect2/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batdetect2/plot.py b/batdetect2/plot.py index e08308a..cdcdbd8 100644 --- a/batdetect2/plot.py +++ b/batdetect2/plot.py @@ -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))