mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 22:51:58 +02:00
freq axis ticks
This commit is contained in:
parent
85092e846b
commit
0f97d51086
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user