title: Changing the background color of plot on Jupyter using matplotlib
body: <p>I am using <code>jupyter notebook</code> for simple plotting tasks as the following.</p>
  
  <pre><code>%matplotlib inline
  
  plt.rcParams["figure.figsize"] = (12, 8)
  plt.style.use("bmh")
  </code></pre>
  
  <p>I am getting a plot of the following form. How can remove the background silver color (we can keep the grid but I can also turn them off using <code>plt. grid(False)</code>) to white and change the border color of the plot to black?</p>
  
  <p><a href="https://i.stack.imgur.com/WKLYf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WKLYf.png" alt="enter image description here"></a></p>