0
I am trying to plot a spectrogram with the data provided to me, however, the result seems "inverted". Someone’s been through the same thing?
The frame in which the signal appears matches my original signal, I just don’t understand why it’s the other way around.
plt.figure(figsize=(12,5))
D = librosa.amplitude_to_db(np.abs(librosa.stft(data)))
librosa.display.specshow(D)
librosa.display.specshow(D,x_axis='time',y_axis='linear',sr=sample_rate,cmap='plasma')
plt.savefig('spectrum.png', format='png', dpi=600)
inverted means that the x and y axes are switched?
– Flavio Moraes
or upside down?
– Paulo Marques
the lines are horizontal up, should be vertical, "walking" to the right not?
– Anna