Remove dead code from animation
authorLukáš Jiřiště <lukas.jiriste@datapartner.cz>
Fri, 5 Dec 2025 10:56:58 +0000 (11:56 +0100)
committerLukáš Jiřiště <lukas.jiriste@datapartner.cz>
Fri, 5 Dec 2025 10:56:58 +0000 (11:56 +0100)
animate_result.py

index 1e8fbc8d5670de6a9b9147cd451ff9e9bf5c0ec6..486cb5b5919beb910cf24f5cb8efd310069e99a9 100755 (executable)
@@ -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: