From 6c18ef5fcd9bce8d72aafe3216ff31e38c8a0787 Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Wed, 16 Feb 2022 15:36:14 +0100 Subject: [PATCH] [plotter] allow animated one figure plot --- plotter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plotter.py b/plotter.py index 1511bd9..e5ba1bc 100644 --- a/plotter.py +++ b/plotter.py @@ -402,12 +402,13 @@ class Plotter(Aggregator, BaseProcessor): onefigure = False # If axes are provided, only save/close once if ax is not None: onefigure = True - plot_filename = self._find_filename(name_full) + if not movie: + plot_filename = self._find_filename(name_full) for i, (run, num) in enumerate(run_num): # Find filename - if not onefigure: + if not onefigure or movie: plot_filename = self._find_filename(name_full, run, num) # Find ax @@ -514,7 +515,7 @@ class Plotter(Aggregator, BaseProcessor): tag_name = "_" + tag_name if run is not None and num is not None: - fmt = "{out}/{run}{subfolder}/{name}{tag}_{run}_{num:05}{ext}" + fmt = "{out}/{run}{subfolder}/{name}{tag}_{run}{ext}" elif run is not None: fmt = "{out}/{run}{subfolder}/{name}{tag}_{run}{ext}" else: