Fill area between two lines


How can I fill the area between 2 lines? In the documentation and examples all I see is filling from x=0 up to the line, but not between lines.

How can I do this?

Thank you for the help.

Try using fill: 'tonexty' (example: or fill: 'tonextx'

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online