Matplotlib fonts in Enthought Canopy

前端 未结 3 1934
盖世英雄少女心
盖世英雄少女心 2020-12-28 08:54

I am using the matplotlib library inside Canopy, and the specific function is xkcd(). This function uses a specific font to plot charts. The font is Comic Sans MS, which if

3条回答
  •  自闭症患者
    2020-12-28 09:54

    This worked for me, and had the benefit of being something I could do from within a jupyter notebook, too:

    Just type the following from within the python console (or your jupyter notebook):

    matplotlib.font_manager._rebuild()
    

提交回复
热议问题