I converted a 1sec audio file to a morlet
wavelet using this code:
import matplotlib.pyplot as plt
import soundfile as sf
import skimage.io
from scipy import signal
from scipy.io import wavfile
import numpy as np
from ssqueezepy import cwt
from ssqueezepy.visuals import plot, imshow
[data1, sample_rate1] = sf.read(input_file)
duration = len(data1)/sample_rate1
time = np.arange(0, duration, 1/sample_rate1) #time vector
Wx, scales = cwt(data1, 'morlet')
Wx = abs(Wx) # remove complex component
imshow(Wx, abs=1)
However, I get the x-axis being shown in the thousands....how does the actual time correspond to the x-axis being generated by the ssqueezepy cwt
code? Here is my plot of my 1sec audio file: