How to set font size of Matplotlib axis Legend?

后端 未结 7 1586
渐次进展
渐次进展 2020-12-02 10:19

I have a code like this:

import matplotlib.pyplot as plt
from matplotlib.pyplot import *
from matplotlib.font_manager import FontProperties

fontP = FontProp         


        
相关标签:
7条回答
  • 2020-12-02 11:14

    Banged my head against it too, here is another more flowing way of doing it:

    leg = ax.legend()
    leg.set_title('A great legend',prop={'size':14})
    
    0 讨论(0)
提交回复
热议问题