擅长:python、mysql、java
<p>您可以将调用中的字体放大到<code>sns.set()</code>。</p>
<pre><code>import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
x = np.random.normal(size=37)
y = np.random.lognormal(size=37)
# defaults
sns.set()
fig, ax = plt.subplots()
ax.plot(x, y, marker='s', linestyle='none', label='small')
ax.legend(loc='upper left', bbox_to_anchor=(0, 1.1))
</code></pre>
<p><img src="https://i.stack.imgur.com/CoDsp.png" alt="enter image description here"/></p>
<pre><code>sns.set(font_scale=5) # crazy big
fig, ax = plt.subplots()
ax.plot(x, y, marker='s', linestyle='none', label='big')
ax.legend(loc='upper left', bbox_to_anchor=(0, 1.3))
</code></pre>
<p><img src="https://i.stack.imgur.com/IbDLE.png" alt="enter image description here"/></p>