📜  matplotlib 更改字体 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:34.285000             🧑  作者: 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"