plotly y axis out of order code example Example: plotly reverse y axis fig['layout']['yaxis']['autorange'] = "reversed"