title: Matplotlib how to set legend's font type
body: <p>I want to change the font type of the legend texts in Matplotlib. I know I can do something like this:</p>
  
  <pre><code>plt.legend(prop={'family': 'Arial'})
  </code></pre>
  
  <p>But I want to use a Chinese font type and I have no idea what is the family name I should put in the line above. But I do have a fontproperties object to that Chinese font type. However, I haven't found a way to set the fontproperties of the legend.</p>
  
  <p>So two questions:</p>
  
  <ol>
  <li>How to find the name of a particular font's family name</li>
  <li>How to set fontproperties of the legend</li>
  </ol>