Add border to title of plot

How do i add border to the plot title. I had searched for long still couldn’t find.
Thankyou

summoning skiks @Skiks :sweat_smile:

1 Like

Haha! Here I am! :grin:
Hi @H4CK3R !

It doesn’t seem possible using the title of the plot, you can set:

  • the font size/color/familly
  • the position
  • the padding

If you want more customization, like adding a border, I would suggest to use an annotation, like

fig.add_annotation(
    text="My Title",
    font_size=20,
    showarrow=False,
    xanchor="center", yanchor="bottom",
    xref="x domain", yref="y domain",
    x=0.5, y=1.05,
    bordercolor="black",
    borderpad=5,
)

2 Likes

Oh, hmm…i see, so we give annotation instead. Thankyou bro!

1 Like