[plotter] allow animated one figure plot
This commit is contained in:
+4
-3
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user