Plot dynamically changing graph using matplotlib in Jupyter Notebook
<p>I have a M x N 2D array: ith row represents that value of N points at time i. </p>

<p>I want to visualize the points [1 row of the array] in the form of a graph where the values get updated after a small interval. Thus the graph shows 1 row at a time, then update the values to next row, so on and so forth. </p>

<p>I want to do this in a jupyter notebook. Looking for reference codes. </p>

<p>I tried following things but no success:</p>

<p><a href="http://community.plot.ly/t/updating-graph-with-new-data-every-100-ms-or-so/812" rel="nofollow">http://community.plot.ly/t/updating-graph-with-new-data-every-100-ms-or-so/812</a></p>

<p><a href="https://pythonprogramming.net/live-graphs-matplotlib-tutorial/" rel="nofollow">https://pythonprogramming.net/live-graphs-matplotlib-tutorial/</a></p>

<p><a href="http://stackoverflow.com/questions/5618620/create-dynamic-updated-graph-with-python">Create dynamic updated graph with Python</a></p>

<p><a href="http://stackoverflow.com/questions/11371255/update-lines-in-matplotlib">Update Lines in matplotlib</a></p>

<p>I don't know much about matplotlib or jupyter. However, Graphs interest me. I just did some googling and came across this <a href="http://louistiao.me/posts/notebooks/embedding-matplotlib-animations-in-jupyter-notebooks/" rel="nofollow">post</a>. Seems like you have to render the graph as an HTML video to see a dynamic graph. </p>

<p>I tried that post. <a href="http://www.filedropper.com/displayanimationasvideoavconv" rel="nofollow">This</a> is the notebook, if you wish to try. Note that the kernel (python 2) takes sometime to build the video. You can read more about it <a href="https://jakevdp.github.io/blog/2012/08/18/matplotlib-animation-tutorial/" rel="nofollow">here</a>.</p>

<p>Now you want to display a graph row to row. I tried <a href="http://www.filedropper.com/showdownload.php/randomgraphvideo" rel="nofollow">this</a>. In that notebook, I have a <code>dump_data</code> with 10 rows. I randomly take one and plot them and display as video. </p>

<p>It was interesting to learn about jupyter. Hope this helps.</p>

python matplotlib plot graph jupyter-notebook