When I do annotation, its positions is alway on top-left (please see the below code). How can I do it on âbottom-centerâ?
I tried with âalignâ and âxanchorâ, etc., but none solves my problem.
import plotly.graph_objs as go
import plotly.io as pio
pio.renderers.default = 'chrome'
x = list(range(1, 10))
y = list(range(21, 30))
fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y))
fig.add_annotation(x=x[4], y=y[4], arrowsize=2, text='here')
pio.show(fig)
Thank you for any comment in advance