[Python]-plt.style.use(‘seaborn‘)报错
首先查看你的系统中带的所有样式。
import matplotlib.pyplot as plt
available_styles = plt.style.available
for style in available_styles:
print(style)
若没有“seaborn"就需要安装seaborn,打开cmd,输入“pip install seaborn”。
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭