I forgot to address this point in my previous reply, simply add the line
fig.layout.update(title='your_title_here', showlegend=True)
I forgot to address this point in my previous reply, simply add the line
fig.layout.update(title='your_title_here', showlegend=True)