0

I am trying to add custom data like "filename, email-id, created by" to python plotly figure at the right top/bottom of figure. see attached image for reference. I gone through API documentation and googled it. But didn't find any useful information. Expected_final_image

Expectation: As per the attached image.

  • Actually, its task for me to explore and finish it. So, using examples of this link https://plotly.com/python/configuration-options/. On top of it, I have to add above details. I couldn't be able to find any parameters to add. so, i posted question. – Ravi sankar Feb 02 '23 at 09:21

1 Answers1

1

What you are trying to do is annotate your figure. You should check out this link,this, this, and this!

One of the ways you can do this is through the fig.add_annotation() argument.

For instance, you can try to add the following code to add annotations to your figure and modify from there to see how it works.

fig.add_annotation(
   dict(
      font=dict(color='red',size=12),
      x=0.9,
      y=0.9,
      text="I want to add annotation",
      textangle=0,                               
      xanchor='right'))

You can make all kinds of customisations through the fig.add_annotation.

Beavis
  • 94
  • 9