matplotlib set yaxis label size

后端 未结 1 1754
野性不改
野性不改 2021-02-01 00:23

How can I change the size of only the yaxis label? Right now, I change the size of all labels using

pylab.rc(\'font\', family=\'serif\', size=40)
相关标签:
1条回答
  • 2021-02-01 00:54

    If you are using the 'pylab' for interactive plotting you can set the labelsize at creation time with pylab.ylabel('Example', fontsize=40).

    If you use pyplot programmatically you can either set the fontsize on creation with ax.set_ylabel('Example', fontsize=40) or afterwards with ax.yaxis.label.set_size(40).

    0 讨论(0)
提交回复
热议问题