Matplotlib: Times New Roman appears bold

后端 未结 8 1757
醉梦人生
醉梦人生 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-14 23:54

    I know the question is very old, but it still is a problem, at least for me on my mac. I found a very easy solution to this problem, posted by azag0 on github

    del matplotlib.font_manager.weight_dict['roman']
    matplotlib.font_manager._rebuild()
    

    https://github.com/matplotlib/matplotlib/issues/5574

提交回复
热议问题