擅长:python、mysql、java
<p>下面的方法应该行得通。在</p>
<pre><code>g = sns.factorplot(x="time", y="pulse", hue="kind",
col="diet", data=exercise, legend=False)
g.axes[0][0].legend()
</code></pre>
<p>附言:</p>
<ol>
<li><a href="https://stackoverflow.com/questions/33631163/how-to-put-the-legend-on-first-subplot-of-seaborn-facetgrid">How to put the legend on first subplot of seaborn.FacetGrid?</a></li>
</ol>