Show only one Y value

I’m making a markers+lines graph and I want to only show the markers and lines when Y=1. Is there a way I can truncate the y-axis to only show when Y=1.

Here is a codepen of my graph:

Thank you

layout.yaxis.range: [0.9, 1] or something similar should do the trick.

[0.99, 0.01] works well

Thank you!