自定义 matplotlib 设置

Customizing plots with style sheets

import matplotlib as mpl
  • 查看配置文件所在的目录:mpl.get_configdir()

1. 自定义 style

在 mpl.get_configdir() 目录下,首先创建 stylelib 目录,接着创建 style 文件(~/.matplotlib/stylelib/myname.mplstyle)

原文地址:https://www.cnblogs.com/mtcnn/p/9421650.html