title: Plotting an image with x-axis as time
body: <p>I am trying to plot a tensor of shape (x, 88, 1) where x is on the order of ~10,000. Each value at x is a point in time at an interval of .028 seconds. </p>
  
  <p>How can I plot the values of x as a time in minutes:seconds with matplotlib? Currently my graphs come out like </p>
  
  <p><a href="https://i.stack.imgur.com/mOy2N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mOy2N.png" alt="enter image description here"></a></p>
  
  <p>example code</p>
  
  <pre><code>    plt.imshow(missing, aspect='auto', origin='lower', cmap='gray_r', vmin=0, vmax=1)
      plt.figure(1, figsize=(8.5, 11))
      plt.xlabel('Sample #')
      plt.colorbar()
      plt.clf()
  </code></pre>
  
  <p>Google keeps producing results plotting dates which is not what I need so I'm asking here. </p>