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)