最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Having consistent font for the plot in the latex - Stack Overflow

programmeradmin0浏览0评论

I have plotted some plots in python but I want them to have the same font as my latex text. what should I have to do?

Consistency with labels of the plot and the text in latex. How to have the same font in the latex text in the python plots? consistent font in latex and the python labels.

I have plotted some plots in python but I want them to have the same font as my latex text. what should I have to do?

Consistency with labels of the plot and the text in latex. How to have the same font in the latex text in the python plots? consistent font in latex and the python labels.

Share Improve this question asked Feb 5 at 19:43 Light Light 1
Add a comment  | 

1 Answer 1

Reset to default 1

If this is matplotlib, you can change the default font in plots using this:

import matplotlib.pyplot as plt
plt.rcParams["font.family"] = "Arial"

Then you can match that font to your LaTeX settings

发布评论

评论列表(0)

  1. 暂无评论