So I am trying to plot n circle shapes in a graph with Plotly. This number n can vary and that's why I cannot create them manually but I need a loop. Is there anyway to do that? to replicate n times this piece of code according to my list indexes?:
'shapes': [
# Circle to define radius_of_persistence
{
'type': 'circle',
'xref': 'x',
'yref': 'y',
'x0': zois_list[0]-radius_of_persistence,
'y0': zois_list[1]-radius_of_persistence,
'x1': zois_list[0]+radius_of_persistence,
'y1': zois_list[1]+radius_of_persistence,
'line': {
'color': 'rgba(255, 171, 96, 1)',
},
},