Reverse spectrogram

Asked

Viewed 24 times

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?

inserir a descrição da imagem aqui

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?

  • or upside down?

  • the lines are horizontal up, should be vertical, "walking" to the right not?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.