title: change background color of matplotlib graph
body: <p>I want to change the background color of the embeded matplotlob graph. I already got it to change the background color of the widget, but not of the chart (inside)<a href="https://i.stack.imgur.com/9klUn.png" rel="nofollow noreferrer">I mean the white part of the program</a></p>
  <p>here is the code:</p>
  <pre><code>from tkinter import *
  import matplotlib.pyplot as plt
  from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
  
  x = [1, 2, 3, 4, 5]
  y = [1, 2, 3, 4, 5]
  
  root = Tk()
  root.title(&quot;graph embed&quot;)
  root.geometry(&quot;200x300&quot;)
  root.configure(bg=&quot;yellow&quot;)
  
  ax = plt.gca()
  ax.set_facecolor('yellow')
  fig = plt.Figure(figsize=(5, 4), dpi=100)
  fig.add_subplot(111).plot(x, y, &quot;bo&quot;)
  fig.set_facecolor(&quot;yellow&quot;)
  
  chart = FigureCanvasTkAgg(fig, root)
  chart.get_tk_widget().pack()
  
  root.mainloop()
  </code></pre>