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: