change matplotlib's default font

后端 未结 4 1694
粉色の甜心
粉色の甜心 2020-12-14 16:26

I\'m trying to change matplotlib\'s default font to Helvetica Neue. On my Mac with EPD/Canopy everything worked fine some time ago.

Trying to do the same on ubuntu

4条回答
  •  醉酒成梦
    2020-12-14 16:33

    This won't change you font permanently, but it's worth a try

    matplotlib.rc('font', family='sans-serif') 
    matplotlib.rc('font', serif='Helvetica Neue') 
    matplotlib.rc('text', usetex='false') 
    matplotlib.rcParams.update({'font.size': 22})
    

提交回复
热议问题