擅长:python、mysql、java
<p>在图例和图例标题中调整字体大小的快速方法:</p>
<pre><code>import numpy as np
import pylab as plt
f,ax = plt.subplots()
x = np.arange(10)
y = np.sin(x)
ax.plot(x,y, label = 'sin')
leg = ax.legend(fontsize = 'large')
leg.set_title("title", prop = {'size':'x-large'})
f.show()
</code></pre>