Ellipse shape in a polar plot

Hello everyone,

I am trying to build a confidence ellipse for scattered data represented in a polar diagram.

I actually can do it with matplotlib library (ax.add_artist(my_ellipse)) and cartesian axis but I prefer Plotly for dash purposes. This what I have at this moment:

import plotly.graph_objects as go

max_value=2
step=0.5

trace1={‘r’:[1.2,0.4,0.75,0.5,1.5],‘th’:[60,270,360,300,30]}

data=[go.Scatterpolar(r=trace1[‘r’],theta=trace1[‘th’],
mode=‘markers’,
name=‘trace_1’,
showlegend=True,
opacity=1),
]

fig=go.Figure(data=data)

fig.update_layout(title=‘Test’,
polar = dict(
radialaxis_tickmode=‘linear’,
radialaxis_range = [0,max_value],
radialaxis_dtick=step,
radialaxis_showticklabels=False))

fig.show()

I could find a similar topic but the example answer is for cartesian axis.

Thank’s in advance