title: How to completely remove the white space around a scatter plot
body: <p>I am trying to plot a scatterplot over an image without having any white space around it.</p>
  
  <p>If I plot just the image as follows, then there is no white space:</p>
  
  <pre><code>fig = plt.imshow(im,alpha=alpha,extent=(0,1,1,0))
  plt.axis('off')
  fig.axes.axis('tight')
  fig.axes.get_xaxis().set_visible(False)
  fig.axes.get_yaxis().set_visible(False)
  </code></pre>
  
  <p>but as I add a scatter plot over the image as follows:</p>
  
  <pre><code>fig = plt.scatter(sx, sy,c="gray",s=4,linewidths=.2,alpha=.5)
  fig.axes.axis('tight')
  fig.axes.get_xaxis().set_visible(False)
  fig.axes.get_yaxis().set_visible(False)
  </code></pre>
  
  <p>At this point, by using the following savefig command, the white space is added around the image:</p>
  
  <pre><code>plt.savefig(im_filename,format="png",bbox_inches='tight',pad_inches=0)
  </code></pre>
  
  <p>Any idea on how to remove the white space definitely?</p>