I am running the following code to plot the spectrogram of an image.
spec,freq,t,im = plt.specgram(raw[10],Fs=100,NFFT=100,noverlap=50) plt.axis(\'off\')