Add a <text> to plotly svg

I would like, in order to make custom legends, to be able to add content to the svg created by plotly, however, I can’t. Maybe I have to choose a special place?

I tried to add a < text > in the < g class=“xy” >, it was fine there but not visible.