Matplotlib 提供的seaborn 样式自3.6 起已弃用,因为它们不再对应于seaborn 提供的样式。但是,它们仍将以“seaborn-v0_8-<style>”形式提供。或者,直接使用seaborn API。
我已经尝试过这个:
# use seaborn style plt.style.use("seaborn")
但它已被弃用,我想在 Windows 中使用 cmd 时删除此警告
python matplotlib seaborn deprecation-warning
deprecation-warning ×1
matplotlib ×1
python ×1
seaborn ×1