Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meteva 为啥要设置绘图字体? #150

Open
longtsing opened this issue Mar 14, 2023 · 1 comment
Open

meteva 为啥要设置绘图字体? #150

longtsing opened this issue Mar 14, 2023 · 1 comment

Comments

@longtsing
Copy link
Contributor

longtsing commented Mar 14, 2023

引入 meteva 包后发现 plt.rcParams['font.sans-serif'] 被设置成 simhei ,但是我是 ubuntu 服务器,已经设置好 matplotlib 的字体参数,为什么要重写matplolib字体,是有什么逻辑上的要求么?

@liucouhua
Copy link
Collaborator

绘图函数中使用了plt.rcParams['font.sans-serif']=['SimHei'] 语句来设置中文字体。这不是强制性的要求,如果需要更换字体,在调用 meteva中的绘图函数功能前,可以先运行 plt.rcParams['font.sans-serif'] = [其它字体参数]。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants