gpt4 book ai didi

python - 如何重置 'plt.style.use(' dark_background')'?

转载 作者:行者123 更新时间:2023-12-04 12:03:43 27 4
gpt4 key购买 nike

plt.style.use('dark_background')

我把它放到我的 jupyter notebook 中,现在我所有的图表都有黑色背景。如何将其改回默认的白色背景?如果我从 jupyter notebook 中删除代码,图形仍然都是黑色背景。

最佳答案

居然有一个default .但它没有列在下面plt.style.available .只需运行:

plt.style.use('default')
它将样式返回到您环境中的默认 Matplotlib 设置

关于python - 如何重置 'plt.style.use(' dark_background')'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47655790/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com