Reversed axis with range specified

Hi empet, thanks for your reply. I’m sorry, I perhaps didn’t clarify what I’d like to do.

Let’s say I have some data with a range in x from 0 to 10. I want to display this data on an x-axis which is reversed so 10 is on the left and 0 on the right. However, I’d additionally like to display only a limited range of the whole data, let’s say from 5 to 8 (or 8 to 5, since it’s reversed). I have found that the code in the example I previously linked to does not do what I believe it is meant to be doing. Namely the range=[0, 10] in this code:

xaxis=dict(autorange='reversed', range=[0, 10])

in the example does not seem to have any effect on the plot. If autorange='reversed' is removed, then the range=[...] does have an effect.

In fact I can achieve what I want by simply omitting the autorange and specifying the range as range=[10,0]. So now I’m wondering what is autorange=reversed meant to do that range=[max, min] can’t? Regarding your example, it seems we could achieve some blank space on the left of the reversed plot just by changing the range e.g. range=[max+5, min].

Thanks