added repeat=false to the funcAnimation of Matplotlib

This commit is contained in:
Brantegger Georg
2022-05-23 15:17:18 +02:00
parent d8501e165a
commit ab94988509

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
@@ -15,7 +15,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
@@ -65,13 +65,13 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "561bc9e68f9a4b0a8f5c8fd67bd781d1",
"model_id": "5101051e4acd4cfeace5f79c193a6a04",
"version_major": 2,
"version_minor": 0
},
@@ -117,7 +117,7 @@
" return ln,\n",
"\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",
"\n",
"frames=np.arange(np.size(time))"
@@ -125,11 +125,11 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# # plot np.arrays\n",
"# # plot np.arrays with matplotlib\n",
"# %matplotlib widget\n",
"# from matplotlib import pyplot as plt\n",
"\n",
@@ -173,7 +173,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [