ieeetran.cls
我的目标是为我的绘图使用模板中的字体及其大小(在我的特定情况下为)。
使用 Python/Jupyter,matplotlib
我创建了一个存储为 pgf 文件的绘图,效果很好:
plt.rcParams.update({
'font.family': 'sans-serif', # used for the plot in Jupyter
'text.usetex': True, # used for the plot in Jupyter
'pgf.rcfonts': False, # actually I thought this is the essential line
})
fig, ax = plt.subplots(figsize=(7.16, 3), dpi=300)
# do the plot
plt.savefig('../reports/plot.pgf')
但是在乳胶文件中,使用
\input{figures/plot.pgf}
图中的字体(尤其是大小)设置不正确:
请注意标题和图例或数字的不同尺寸。
我认为设置可以'pgf.rcfonts': False
解决问题......我做错了什么?