From ab9498850909c91070cd5c748b811e2f06277b53 Mon Sep 17 00:00:00 2001 From: Brantegger Georg Date: Mon, 23 May 2022 15:17:18 +0200 Subject: [PATCH] added repeat=false to the funcAnimation of Matplotlib --- functions/volume_change_nb.ipynb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/functions/volume_change_nb.ipynb b/functions/volume_change_nb.ipynb index b92958d..4b3c577 100644 --- a/functions/volume_change_nb.ipynb +++ b/functions/volume_change_nb.ipynb @@ -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": [