On , I learned ...

Adding a subtitle in plotly

In plotly, there used to be no way to add a subtitle explicitly. Now you can add a subtitle as part of the title dictionary. For example:


import plotly.graph_objects as go

fig=go.Figure(..., layout=dict(title=dict(text="My cool chart", subtitle=dict(text="It is the best", font=dict(color="gray", size=12)))))