From 979995cc9ec7dbed5bdb154405ff32c0110005ac Mon Sep 17 00:00:00 2001 From: Jacques Grelet Date: Tue, 6 Apr 2021 16:12:10 +0000 Subject: [PATCH] reorganize png file name --- plots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plots.py b/plots.py index 44a51ff..2e1a423 100755 --- a/plots.py +++ b/plots.py @@ -454,8 +454,8 @@ def section(self, start, end, xaxis, yscale, exclude, fig.text(0.04, 0.5, ylabel, va='center', ha='center', rotation='vertical') sep = "_" if self.append else "" - figname = '{}-section-{}-{}{}{}.png'.format( - self.nc.cycle_mesure, self.type, var, sep, self.append) + figname = '{}{}{}-{}-{}.png'.format( + self.nc.cycle_mesure, sep, self.append, self.type, var) dest = os.path.join(path, figname) fig.savefig(dest) print('Data: {}, printing: {}'.format(np.shape(zi), dest))