# Move annotations to background

**URL:** <https://community.plotly.com/t/move-annotations-to-background/51210>\
**Category:** 📊 Plotly Python\
**Created:** [March 19, 2021, 3:55pm UTC](https://community.plotly.com/t/move-annotations-to-background/51210 "2021-03-19T15:55:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xopin90594](https://avatars.discourse-cdn.com/v4/letter/x/65b543/32.png) [@xopin90594](https://community.plotly.com/u/xopin90594)\
**Post date:** [March 19, 2021, 3:55pm UTC](https://community.plotly.com/t/move-annotations-to-background/51210/1 "2021-03-19T15:55:09Z")

</div>

Hello,

I plotted a line chart with little circles on top of the line. To plot these circles, I used annotations with just the following arguments:

showarrow=True,  
arrowhead=6,  
arrowcolor= arrowColor,  
arrowsize=2,  
arrowwidth=1.5,  
standoff=0,  
opacity=0.5,  
ax=0  
ay=10

Is there a possibilty to move the annotations to the background? Right now it’s possible that the line is hidden by the annotations (especially when there are a lot of circles close to each other and the summed up opacity is \> 1).

I checked the Annotations documentation ([Text and Annotations | Python | Plotly](https://plotly.com/python/text-and-annotations/)) but couldn’t find what I was looking for.

Are annotations even the right choice? It could also be possible to move the line chart to the top.

Thank you and best regards,  
Xopin

---

<div class="post-metadata">

**Author:** ![TomBoomstra](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@TomBoomstra](https://community.plotly.com/u/TomBoomstra)\
**Post date:** [February 24, 2022, 7:37pm UTC](https://community.plotly.com/t/move-annotations-to-background/51210/2 "2022-02-24T19:37:50Z")

</div>

Is there any solution for this?

---

<div class="post-metadata">

**Author:** ![mortenb123](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/mortenb123/32/26640_2.png) [@mortenb123](https://community.plotly.com/u/mortenb123)\
**Post date:** [January 18, 2024, 9:43am UTC](https://community.plotly.com/t/move-annotations-to-background/51210/3 "2024-01-18T09:43:26Z")

</div>

I have the same problem, I have annotation to give the timestamp, but it hides the plot.  
I can use legend, but it makes the graph much larger.  
 ![bilde](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/8/c/8ce706387335bcf470a1da12bb8d20d6244c6d8c.png)

Would be nice to be able to set the overwrite order of plots and annotation

Thanks

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [January 18, 2024, 9:57am UTC](https://community.plotly.com/t/move-annotations-to-background/51210/4 "2024-01-18T09:57:31Z")

</div>

> [@mortenb123](#):
>
> Would be nice to be able to set the overwrite order of plots and annotation

I agree, but that’s not possible right now. You can’t control the order of the traces neither, which would be another thing nice to have.
