I think what you are seeing is the X scale getting expanded to 3 units, before the min scale is readjusted to make it 2 again. If you defer panel updates while the graph scale is getting redrawn like in the attached modified example, the problem goes away.
The stacked sequence was not necessary along with extra locals, so I cleaned that up.