1fig, ax = plt.subplots()
2#to change the inside of the graph
3ax.set_facecolor('xkcd:salmon')
4ax.set_facecolor((1.0, 0.47, 0.42))
5#to change the border color around the back
6fig.patch.set_facecolor('xkcd:mint green')
1matplotlib. colors
2b : blue.
3g : green.
4r : red.
5c : cyan.
6m : magenta.
7y : yellow.
8k : black.
9w : white.