From e3c0810d6f0c3b1532351e0baf94b3006c0d5203 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Fri, 5 Dec 2025 11:56:58 +0100 Subject: [PATCH] Remove dead code from animation --- animate_result.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/animate_result.py b/animate_result.py index 1e8fbc8..486cb5b 100755 --- a/animate_result.py +++ b/animate_result.py @@ -50,19 +50,9 @@ def transpose_strings(array): res_array[i] = ''.join(res_array[i]); return (res_array); -# datadict from global scope -def plot(name_x, name_y): - return (plt.plot(datadict[name_x], datadict[name_y])); - -def update(frame): - line.set_xdata(datadict[name_x][frame]); - line.set_ydata(datadict[name_y][frame]); - def matAniFromFile(filename): data = scp.io.loadmat("nbody.System_res.mat"); names = transpose_strings(data["name"]); - descriptions = transpose_strings(data["description"]); - pure_data = data["data_2"]; inds = data["dataInfo"][1]; ani = MatAnimation(); for i in inds: -- 2.30.2