如何解决字体 - python 中的数学模式
我用它做字体:
\usepackage{amsmath} \usepackage{fdsymbol}"
params = {'text.usetex' : True,'font.size' : 20,'font.family' : 'lcmodern',}
plt.rcParams.update(params)
这对于文本 - LaTeX 数学模式
ax1.set_xlabel(r'$T$ [s]')
如何将数学模式的字体设置为 Arial、Trebuchet...之类的字体?
建议后:
它不适用于蜱虫。
我试过了:
plt.rcParams['text.latex.preamble'] = r"\usepackage{bm} \usepackage{amsmath} \usepackage{fdsymbol} \renewcommand{\familydefault}{\sfdefault}"
params = {'text.usetex' : True,}
plt.rcParams.update(params)
和
plt.rcParams['text.latex.preamble'] = r"\usepackage{bm} \usepackage{amsmath} \usepackage{fdsymbol} \usepackage{sansmath} \renewcommand{\familydefault}{\sfdefault}"
params = {'text.usetex' : True,}
plt.rcParams.update(params)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。