📜  直接更改绘图文件中的字体 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:32.935000             🧑  作者: Mango

代码示例1
from matplotlib import rc
font = {'size'   : 16}
matplotlib.rc('font', **font)

# change font
matplotlib.rcParams['font.sans-serif'] = "Arial"
matplotlib.rcParams['font.family'] = "sans-serif"