如何在使用latex时更改matplotlib中的数学字体样式。例如,我有
matplotlib_font$_{latex_font}$
在这里,matplotlib_font显示为我的rc文件中的字体集,而Latex_font则是现代计算机。我不想让我所有的字体都流失乳胶。我想把rc文件保存为
text.usetex : False
但是我需要我的乳胶字体来匹配我的matplotlib字体。
发布于 2017-05-07 23:58:14
在rc (matplotlibrc)文件集中找到了它
mathtext.fontset : custom
然后用数学模式所需的字体更新数学文本。
mathtext.rm : Times New Roman
mathtext.it : Times New Roman:italic
mathtext.bf : Times New Roman:bold
https://stackoverflow.com/questions/43842346
复制相似问题