title: How to change background color for scatter plot in matplotlib
body: <p>How do I change the background color of a scatter plot in matplotlib?</p>
  
  <p>Currently I have</p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.scatter(X, Y, c=T, marker='o', s=(0.005*r), linewidth=0, cmap=cm.coolwarm)
  plt.scatter(X_stars, Y_stars, marker='o', s=(0.00000005*r), color='white')
  
  plt.savefig(filename, format='ps')
  </code></pre>
  
  <p>I want the background to be black, not white.
  I already changed <code>facecolor</code> and <code>edgecolor</code> to black, but without the desired effect. Setting <code>transparent=True</code> made it transparent so that I could change the background in Photoshop, but it must work in matplotlib as I have a very large number of plots.</p>