matplotlib图例、标签、坐标轴刻度的字体设置
程序员文章站
2022-03-18 21:38:28
...
plt.figure(figsize=[15,8])
plt.scatter(X, Y, label = 'RealValue')
plt.plot(X, func(X, a, b), 'red', label = 'CurveLine')
plt.title(station, fontdict={'family' : 'Times New Roman', 'size' : 16})
plt.ylabel('Clocks($\mu S$)', fontdict={'family' : 'Times New Roman', 'size' : 16})
plt.xlabel('Time', fontdict={'family' : 'Times New Roman', 'size' : 16})
plt.yticks(fontproperties = 'Times New Roman', size = 14)
plt.xticks(fontproperties = 'Times New Roman', size = 14)
plt.legend(prop={'family' : 'Times New Roman', 'size' : 16})
plt.savefig('./stationClocks/' + station + '.ps', dpi = 200)
plt.show()
推荐阅读
-
【Matlab学习笔记】设置坐标轴和图例,以及对坐标轴、图例字体大小的调节
-
Matplotlib之tick设置坐标轴刻度的透明度
-
matplotlib图像刻度、坐标轴的设置
-
python matplotlib画图设置坐标轴刻度的字体大小
-
python matplotlib画图设置坐标轴刻度的字体大小
-
Python设置matplotlib.plot的坐标轴刻度间隔以及刻度范围
-
matplotlib图例、标签、坐标轴刻度的字体设置
-
python之matplotlib 3.2.1之坐标轴刻度(坐标轴标签)字号、字体设置
-
python plt 设置双坐标轴彩色刻度,双图例,标签旋转
-
【Matlab学习笔记】设置坐标轴和图例,以及对坐标轴、图例字体大小的调节