widths = [100/len(years) for year in years]
active_percentage = list()
inactive_percentage = list()
for index, _ in np.ndenumerate(active):
total = active[index[0]] + inactive[index[0]]
active_percentage.append(active[index[0]]/total*100)
inactive_percentage.append(inactive[index[0]]/total*100)
"Inactive": inactive_percentage,
"Active": active_percentage
fig.update_xaxes(range=[years[0],years[-1]])
fig.update_yaxes(range=[0,100])
title_text="Percentage of inactive VS active satellites from 1957 to now",
uniformtext=dict(mode="hide", minsize=10),