Matplotlib: scrolling plot
<p>I'm new to Python and I want to implement a scrolling plot for a very long time series data. I've found an example from Matplotlib as follows.</p>

<p><a href="http://scipy-cookbook.readthedocs.io/items/Matplotlib_ScrollingPlot.html" rel="nofollow">http://scipy-cookbook.readthedocs.io/items/Matplotlib_ScrollingPlot.html</a></p>

<p>When I run the example from the link, I found every time I scroll the plot and release the scrollbar, the scrollbar returns to the beginning. Want to scroll to the next position? I need to start to scroll from the beginning again.</p>

<p>I want to understand why it happens and how to fix it.</p>