fig =
seaborn.
lineplot(....这里略)
fig.legend(loc='center right', bbox_to_anchor=(1,0.1), ncol=1)
ref:https://stackoverflow.com/questions/53733755/how-to-move-legend-to-outside-of-a-seaborn-scatterplot
这里调整loc是看把图例放在哪个位置
bbox_to_anchor调整上下左右位置,可以调整得把图例放在画外
ncol是这个图例中分几列来展示