From: Lukáš Jiřiště Date: Fri, 5 Dec 2025 10:56:58 +0000 (+0100) Subject: Remove dead code from animation X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=e3c0810d6f0c3b1532351e0baf94b3006c0d5203;p=nbody.git Remove dead code from animation --- 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: