From 80635497e638febabecd133f297ed7c32bc77938 Mon Sep 17 00:00:00 2001
From: Lizzzka007 <gashchuk2011@mail.ru>
Date: Thu, 28 Sep 2023 15:57:19 +0300
Subject: [PATCH] fps -> duration

---
 plotter/Plotter.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/plotter/Plotter.py b/plotter/Plotter.py
index 6e8467a..e8e139d 100755
--- a/plotter/Plotter.py
+++ b/plotter/Plotter.py
@@ -222,7 +222,8 @@ class Plotter:
             for file_name in png_names:
                 images.append(imageio.v2.imread(file_name))
 
-            imageio.mimsave(self.oname[0], images, fps = 5, loop = 0)
+            # imageio.mimsave(self.oname[0], images, fps = 5, loop = 0) , duration = 0.04
+            imageio.mimsave(self.oname[0], images, duration = 0.25, loop = 0) 
             shutil.rmtree(self.ani_pngs_dir)
 
     def __plot_contour(self):
@@ -359,7 +360,9 @@ class Plotter:
                 for file_name in png_names:
                     images.append(imageio.v2.imread(file_name))
 
-                imageio.mimsave(self.out + fig_names[i] + fig_end, images, fps = 5, loop=0)
+                # imageio.mimsave(self.out + fig_names[i] + fig_end, images, fps = 5, loop=0)
+                imageio.mimsave(self.out + fig_names[i] + fig_end, images, duration = 0.25, loop=0)
+                # imageio.mimsave(self.oname[0], images, duration = 0.25, loop = 0) 
                 i += 1
             
             shutil.rmtree(self.ani_pngs_dir)
-- 
GitLab