📜  matplotlib 背景颜色 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:13.489000             🧑  作者: Mango

代码示例1
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')