title: Array from interpolated plot in python
body: <p>I have an array with a grid size of 150x80. I plotted the data and interpolate them. This is my figure:</p>
  
  <p><img src="https://i.stack.imgur.com/3ZZGN.png" alt="This is my figure:"> </p>
  
  <p>Here is my problem: I would like to do some calculations on the interpolated data, that's why I need to write the image back in an array with more details as the previous. Is it possible?</p>
  
  <p>----- NEW EDIT -----</p>
  
  <p>This is my code. As you can see I interpolate data in the plot, so I don't actually have a callable interpolation, but an image.</p>
  
  <pre><code>clip=abs(np.percentile(sint_h, 0.999))
  fig, ax = plt.subplots(2,figsize=(10,10))
  im0=ax[0].imshow(sint_h,extent=[0,sint_h.shape[1],sint_h.shape[0]*sr,0],interpolation='bilinear',aspect='auto',cmap='RdBu',vmin=-clip,vmax=clip)
  im1=ax[1].imshow(specamps_h,extent=[0,specamps_h.shape[1],ufreq_range_h.max(),0],interpolation='bilinear',aspect='auto',cmap='rainbow')
  ax[0].set_ylabel('TWT [s]')
  ax[1].set_ylabel('FREQUENCY [Hz]')
  ax[1].set_y
  </code></pre>