在Jupyter Notebook中使用matplotlib绘制动态变化图 [英] Plot dynamically changing graph using matplotlib in Jupyter Notebook

查看:928
本文介绍了在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/

使用Python创建动态更新的图

更新matplotlib中的行

推荐答案

我创建了 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆