change background color of matplotlib graph - Stack Overflow
https://stackoverflow.com/questions/62996242/change-background-color-of-matplotlib-graph
WebYou are creating two separe axes and changing the facecolor on the wrong one. Try this: (...) root.configure (bg="yellow") fig = plt.Figure (figsize= (5, 4), dpi=100) ax = fig.add_subplot (111) ax.plot (x, y, "bo") fig.set_facecolor ("yellow") ax.set_facecolor ('yellow') chart = FigureCanvasTkAgg (fig, root) (...) Share Improve this answer
DA: 70 PA: 99 MOZ Rank: 67