Axe Y inverse

fig['layout']['yaxis']['autorange'] = "reversed"
Yawning Yak