如何更改 LightTable 中 matplotlib 内联图的背景颜色?

How do I change the background color of a matplotlib inline plot in LightTable?

如何在 LightTable 中更改 matplotlib 内联图两侧的背景颜色?在下图中,很难看到轴标签。我可以接受基于 python 的解决方案(即修改显示的 python 代码)或基于 LightTable 的解决方案(即更改其中一个设置文件,但我不确定是哪一个——例如 user.behaviors?)。

如果先创建图形,可以使用patch.set_facecolor设置背景颜色:

fig=plt.figure()
fig.patch.set_facecolor('white')

不确定它是否适用于 LightTable(以前从未使用过),但它确实适用于 ipython 会话,因此希望它可以移植到 LightTable