fig.update_layout title center code example Example: how to center plotly plot title fig.update_layout(title_text='Your title', title_x=0.5)