I have the following piece of code:
import plotly.graph_objects as go
fig = go.Figure()
fig.update_layout(
annotations=[go.layout.Annotation(xref='paper',
yref='paper',
x=1,
xanchor= 'right',
y=1,
yanchor= 'bottom',
showarrow=False,
text='Acceptance: '+str(11)+'%\nAlpha:'),]
)
fig.show()
Which produces the following plot:
The percentage will be specified by a variable. Also, I want to specify the value of Alpha
in a new line.
Why doesnβt \n
push Alpha
to the next line?