![](/img/trans.png)
[英]Python Jupyter notebook SHAP force_plot, how to change the background color or text color in the dark theme?
[英]Change plot background color in jupyter notebook
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, 10, .1)
y = np.sin(x)
plt.figure(facecolor='yellow')
plt.plot(x, y)
plt.xlabel("X")
ax = plt.axes()
ax.set_facecolor("violet")
plt.ylabel('sin(x)')
plt.show()
它让它变黄了我的朋友
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.