stefanuddenberg
4/19/2020 - 12:21 AM

Seaborn -- Show legend outside of lineplot

g = sns.lineplot(x="timepoint", y="BOLD signal", hue="ROI", data=df, ax=ax1) 

# Put a legend to the right side
g.legend(loc='center right', bbox_to_anchor=(1.25, 0.5), ncol=1)