title: How to plot Spectrogram using STFT in python?
body: <p>I calculated STFT of uint8 I/Q data and stored it in a numpy matrix where each row stores STFT of one window as shown in sudo code below.</p>
  
  <pre><code>#k= length of window
  #fs= Sampling frequency
  #n= Number of STFT calculated
  #matrix= Initially empty numpy array
  
  for i in range(0,n):
    t=data[start:end,:]   #start &amp; end calculated with each iteration
    t=t.flatten()
    t=t-127.5
    array = np.empty(t.shape[0]//2, dtype=np.complex128)
    array.real = t[::2]
    array.imag = t[1::2]
  
    transform=(np.fft.fft(temp_array))
    line = 2*abs(transform)/k
  
    #Inserting row into numpy array
    if(i==0):
       matrix = np.hstack((matrix, line))
    else:
       matrix = np.vstack((matrix, line))
  </code></pre>
  
  <p>Now how can I plot frequency vs time Spectrogram ?</p>