Taking a look at your example it looks like the axis you want to reverse is actually yaxis2 so you can run
yaxis2=dict(
autorange='reversed'
)
)```
For the other issue I would suggest editing the margins. There's some information on that on our reference page here: https://plot.ly/python/reference/#layout-margin