ggzhang0071 / graphPartitioning

0 stars 0 forks source link

matplotlib rc参数配置 #6

Open ggzhang0071 opened 4 years ago

ggzhang0071 commented 4 years ago

https://blog.csdn.net/helunqu2017/article/details/78652261

http://www.futurile.net/2016/02/27/matplotlib-beautiful-plots-with-style/

ggzhang0071 commented 4 years ago
matplotlib.get_configdir()
这两个有什么区别
matplotlib.matplotlib_fname()

这里的 matplotlib.rcParams, 是以dict形式存储的。

ggzhang0071 commented 4 years ago

全局配置参数,

matplotlib.rcParams() 全局配置参数
plt.rcParams['font.familly']="Times New Roman"
plt.style.use() 是同一个文件的所有图
plt.style.context() 是单个图

对于图的设定主要是几个

plt.rcParams['xtick.labelsize']=7
plt.rcParams['ytick.labelsize']=7
plt.rcParams['font.family']="Times New Roman"

plt.rcParams.update 更新到config 文件中