Graphs sharing same legend

I forgot to address this point in my previous reply, simply add the line

fig.layout.update(title='your_title_here', showlegend=True)