Unable to find font cache of matplotlib on a mac

后端 未结 2 1731
遇见更好的自我
遇见更好的自我 2021-02-08 22:32

I\'ve researched this a lot and can\'t get it to work.

How can I change the font for matplotlib?

I think my issue is the font cache, based on my research.

<
相关标签:
2条回答
  • 2021-02-08 23:04

    Consider matplotlib.font_manager

    A module for finding, managing, and using fonts across platforms.

    0 讨论(0)
  • 2021-02-08 23:13

    run the following code to get the font cache dir:

    import matplotlib
    matplotlib.get_cachedir()
    
    0 讨论(0)
提交回复
热议问题