Question : matplotlib background color
Answered by : exuberant-eel-2vjub8sho7i7
fig, ax = plt.subplots()
#to change the inside of the graph
ax.set_facecolor('xkcd:salmon')
ax.set_facecolor((1.0, 0.47, 0.42))
#to change the border color around the back
fig.patch.set_facecolor('xkcd:mint green')
Source : https://stackoverflow.com/questions/14088687/how-to-change-plot-background-color | Last Update : Wed, 20 May 20
Question : plot background color matplotlib
Answered by : donpech
### How to change plot background color
fig, ax = plt.subplots()
## to change the inside of the graph
ax.set_facecolor('xkcd:salmon')
ax.set_facecolor((1.0, 0.47, 0.42))
## to change the border color around the back
fig.patch.set_facecolor('xkcd:mint green')
Source : | Last Update : Tue, 15 Mar 22
Question : matplotlib python background color
Answered by : distinct-dotterel-ow8y2awy98m8
fig = plt.figure()
fig.patch.set_facecolor('xkcd:mint green')
Source : https://stackoverflow.com/questions/14088687/how-to-change-plot-background-color | Last Update : Mon, 31 Jan 22