Plotly: How to format text (underline, bold, italic)
问题 I try to underline text in plotly when using annotations. I add my annotations using import plotly.graph_objects as go g = go.FigureWidget(make_subplots(rows=1,cols=1)) g.update_layout(annotations=[dict(text='my text')]) #plus any other parameters Is there an option (in the annotations dict, maybe?) to have underlined text? Thanks! 回答1: Plotly uses a subset of HTML tags to format text like bold '<b></b>' and italics '<i></i>' . Alas, '<u></u>' does not seem to be included at the moment. But