# Adding annotations to polar-scatterplots

**URL:** <https://community.plotly.com/t/adding-annotations-to-polar-scatterplots/704>\
**Category:** 📊 Plotly Python\
**Created:** [March 25, 2016, 1:47pm UTC](https://community.plotly.com/t/adding-annotations-to-polar-scatterplots/704 "2016-03-25T13:47:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harishcherukuri](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@harishcherukuri](https://community.plotly.com/u/harishcherukuri)\
**Post date:** [March 25, 2016, 1:47pm UTC](https://community.plotly.com/t/adding-annotations-to-polar-scatterplots/704/1 "2016-03-25T13:47:41Z")

</div>

Hello, I am using the Plotly Matlab API for plotting a polar scatter-plot. I would like to add text to this plot at different (r,theta) coordinates. As an example, please see the polar scatter-plot at [https://plot.ly/matlab/polar-chart/#polar-scatter-chart](https://plot.ly/matlab/polar-chart/#polar-scatter-chart). If I want to add annotation to this plot at different (r,theta) coordinates, how can I do that? I looked at the examples on text/annotation but they are not for polar scatter-plot. Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [March 28, 2016, 10:51pm UTC](https://community.plotly.com/t/adding-annotations-to-polar-scatterplots/704/2 "2016-03-28T22:51:11Z")

</div>

Annotations are not compatible with polar charts (along with [numerous](https://github.com/plotly/plotly.js/issues/275) other features) at the moment.

We are planning on making significant efforts into putting polar charts on par with the rest of the library this summer. Stay tuned for more details.

---

<div class="post-metadata">

**Author:** ![harishcherukuri](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@harishcherukuri](https://community.plotly.com/u/harishcherukuri)\
**Post date:** [March 28, 2016, 11:51pm UTC](https://community.plotly.com/t/adding-annotations-to-polar-scatterplots/704/3 "2016-03-28T23:51:02Z")

</div>

Thank you. Looking forward to the new features.

---

<div class="post-metadata">

**Author:** ![I194](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/i194/32/7356_2.png) [@I194](https://community.plotly.com/u/I194)\
**Post date:** [August 6, 2019, 3:25pm UTC](https://community.plotly.com/t/adding-annotations-to-polar-scatterplots/704/4 "2019-08-06T15:25:54Z")

</div>

Are annotations still not working for polar scatter chart?

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [August 6, 2019, 9:41pm UTC](https://community.plotly.com/t/adding-annotations-to-polar-scatterplots/704/5 "2019-08-06T21:41:06Z")

</div>

@I194

Starting with Plotly 4.+ we can define subplots with different layout coordinates: polar and cartesian. So we can use a trick to insert annotations below a polar plot. We define a subplot with 2 rows and one column. In the cell  
(1,1), of type=‘polar’, we insert the polar plot, while in (2,1) , of type=‘xy’ (i.e. cartesian) we insert a text as annotation.

Example:

```auto
from plotly.subplots import make_subplots
import plotly.graph_objects as go

fig = make_subplots(
    rows=2, cols=1,
    specs=[[{"type": "polar"}],
           [{"type": "xy"}]])
        
fig.add_trace(go.Barpolar(theta=[0, 45, 90], r=[2, 3, 1]),
              row=1, col=1)

fig.update_layout(height=600, showlegend=False);

fig.layout
Layout({
    'height': 600,
    'polar': {'domain': {'x': [0.0, 1.0], 'y': [0.575, 1.0]}},
    'showlegend': False,
    'template': '...',
    'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0]},
    'yaxis': {'anchor': 'x', 'domain': [0.0, 0.425]}
})

h = 0.2
vertical_sp = 0.1
fig.update_layout(width= 600, height=650, template='none')
fig.layout.polar.domain.update(y =[h, 1])
fig.layout.yaxis.update(domain =[0, h-vertical_sp], visible=False)
fig.layout.xaxis.update(visible=False, range=[0,1])
fig.layout.annotations =[dict(showarrow=False, 
                              text='Here I insert my annotation',  
                              xref='x',     
                              yref='y',     
                              x=0.,  
                              y=0.15,  
                              xanchor='left',   
                              yanchor='bottom',  
                              font=dict(size=12 ))]
fig.show()

```

 ![polar-annot1](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/1/19b0ccc563202d9babb1149074a85ca61a6d88c1.jpeg)

The above figure has no layout template.

With the default ‘plotly’ template the annotation is displayed on a non-white background:

```auto
fig.layout.template='plotly'
fig.show()

```

 ![polar-annot2](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/9/9254cb37c17273d5245813838b5625bfc6ab1476.jpeg)

If your question refers to annotations inside the polar circle (i.e. annotations inserted in a position given in polar coordinates), that is not available, yet.
