在Jupyter Notebook中使用matplotlib绘制动态变化图
问题描述:
我有一个M x N 2D数组:第i行表示在时间i处N个点的值.
I have a M x N 2D array: ith row represents that value of N points at time i.
我想以点阵图的形式可视化点[数组的1行],其中在较小的时间间隔后更新值.因此,该图一次显示1行,然后将值更新到下一行,依此类推.
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.
我想在Jupyter笔记本中执行此操作.寻找参考代码.
I want to do this in a jupyter notebook. Looking for reference codes.
我尝试了以下操作,但没有成功:
I tried following things but no success:
https://pythonprogramming.net/live-graphs-matplotlib-tutorial/