I have data that was extracted from audio files with OpenSMILE. I have the spectrograms as png files, but I would like to learn how to plot it myself with matplotlib. The data has a frametime as first column, and decibel values in the other columns:
frameTime pcm_fftMag_dBsplPSD[0] pcm_fftMag_dBsplPSD[1] pcm_fftMag_dBsplPSD[2] pcm_fftMag_dBsplPSD[3] pcm_fftMag_dBsplPSD[4] pcm_fftMag_dBsplPSD[5] pcm_fftMag_dBsplPSD[6] pcm_fftMag_dBsplPSD[7] pcm_fftMag_dBsplPSD[8] ... pcm_fftMag_dBsplPSD[1015] pcm_fftMag_dBsplPSD[1016] pcm_fftMag_dBsplPSD[1017] pcm_fftMag_dBsplPSD[1018] pcm_fftMag_dBsplPSD[1019] pcm_fftMag_dBsplPSD[1020] pcm_fftMag_dBsplPSD[1021] pcm_fftMag_dBsplPSD[1022] pcm_fftMag_dBsplPSD[1023] pcm_fftMag_dBsplPSD[1024]
0 0.00 29.337350 33.33796 37.80634 39.14856 37.10407 31.38411 23.98991 21.24069 22.17934 ... -29.698 -29.698 -29.698 -29.698 -29.698 -29.698 -29.69800 -29.698 -29.69800 -29.698
1 0.01 25.962640 32.16929 38.17088 40.23822 39.00978 35.06358 29.72674 26.18363 26.30389 ... -29.698 -29.698 -29.698 -29.698 -29.698 -29.698 -29.69800 -29.698 -29.69800 -29.698
2 0.02 29.213380 32.68465 35.56105 32.83764 21.33615 29.81477 29.82164 28.43601 25.28292 ... -29.698 -29.698 -29.698 -29.698 -29.698 -29.698 -29.69800 -29.698 -29.69800 -29.698
3 0.03 14.908160 27.76923 35.07159 38.74467 39.95192 39.26263 36.46785 30.59358 28.20222 ... -29.698 -29.698 -29.698 -29.698 -29.698 -29.698 -29.69800 -29.698 -29.69800 -29.698
The spectrogram would take the first column as x-axis and plot the other columns on the y-axis as spectral bins. How can I plot this data as a spectrogram with matplotlib?