added repeat=false to the funcAnimation of Matplotlib
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 11,
|
"execution_count": 1,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 12,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@@ -65,13 +65,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 13,
|
"execution_count": 4,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"application/vnd.jupyter.widget-view+json": {
|
"application/vnd.jupyter.widget-view+json": {
|
||||||
"model_id": "561bc9e68f9a4b0a8f5c8fd67bd781d1",
|
"model_id": "5101051e4acd4cfeace5f79c193a6a04",
|
||||||
"version_major": 2,
|
"version_major": 2,
|
||||||
"version_minor": 0
|
"version_minor": 0
|
||||||
},
|
},
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
" return ln,\n",
|
" return ln,\n",
|
||||||
"\n",
|
"\n",
|
||||||
"ani = FuncAnimation(fig, update, frames=np.arange(np.size(time)),\n",
|
"ani = FuncAnimation(fig, update, frames=np.arange(np.size(time)),\n",
|
||||||
" init_func=init, blit=True)\n",
|
" init_func=init, blit=True,repeat=False)\n",
|
||||||
"plt.show()\n",
|
"plt.show()\n",
|
||||||
"\n",
|
"\n",
|
||||||
"frames=np.arange(np.size(time))"
|
"frames=np.arange(np.size(time))"
|
||||||
@@ -125,11 +125,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 14,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# # plot np.arrays\n",
|
"# # plot np.arrays with matplotlib\n",
|
||||||
"# %matplotlib widget\n",
|
"# %matplotlib widget\n",
|
||||||
"# from matplotlib import pyplot as plt\n",
|
"# from matplotlib import pyplot as plt\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 15,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
|||||||
Reference in New Issue
Block a user