Matplotlib: Times New Roman appears bold

后端 未结 8 1730
醉梦人生
醉梦人生 2021-02-14 23:40

For some reason when using Times New Roman in my mpl plots it appears bold. Other fonts are OK.

Here is a minimal example, and the result (inside a Word doc

8条回答
  •  独厮守ぢ
    2021-02-15 00:17

    I recently experienced this problem when the matlibplot updated from 2.2.3 to 3.1.0. I tried a lot of answers here and from other websites, but the font "times new roman" still appeared bold. But I remembered last time when it was still 2.2.3, the font appeared normal. So I just replaced the font_manager.py in the 3.1.0 by the font_manager.py in the 2.2.3:

    copy the font_manager.py in ..\anaconda\pkgs\matplotlib-2.2.3-py37hd159220_0\Lib\site-packages\matplotlib

    and paste it here: ..\anaconda\pkgs\matplotlib-3.1.0-py37hc8f65d3_0\Lib\site-packages\matplotlib

    I hope it helps.

提交回复
热议问题