I have a plotly figure which I center the title using -
fig.update_layout(
title={
'text' : title,
'x':0.5,
'xanchor': 'center'
})
I have multiple graphs and I add this to every one of them. I wonder if I can define it in advance, e.g using config object or settings, and not do it for every chart.
This works with me easily:
fig.update_layout(title_text='write a title here', title_x=0.5)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With