From 3371f461f78737ded6e55075040ec0e139d9999c Mon Sep 17 00:00:00 2001 From: bikegeek Date: Mon, 19 Feb 2024 13:19:33 -0700 Subject: [PATCH] issue #383 provide supporting plotting multiple plot types with single config file --- metplotpy/plots/tcmpr_plots/line/mean/tcmpr_line_mean.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metplotpy/plots/tcmpr_plots/line/mean/tcmpr_line_mean.py b/metplotpy/plots/tcmpr_plots/line/mean/tcmpr_line_mean.py index 71cac139..237d6f83 100755 --- a/metplotpy/plots/tcmpr_plots/line/mean/tcmpr_line_mean.py +++ b/metplotpy/plots/tcmpr_plots/line/mean/tcmpr_line_mean.py @@ -25,7 +25,7 @@ def __init__(self, config_obj, column_info, col, case_data, input_df, baseline_d # remove the old file if it exist if os.path.exists(self.plot_filename): os.remove(self.plot_filename) - self._create_figure() + self._create_figure(stat_name) def _adjust_titles(self, stat_name): if self.yaxis_1 is None or len(self.yaxis_1) == 0: @@ -87,7 +87,7 @@ def _create_series(self, input_data, stat_name): if len(name) == 3: # add stat if needed oper = name[2] - name[:] = [(s + ' ' + self.config_obj.list_stat_1[0]) if ' ' not in s else s for s in name[:2]] + name[:] = [(s + ' ' + stat_name) if ' ' not in s else s for s in name[:2]] name.append(oper) series_obj = TcmprSeriesLineMean(self.config_obj, num_series_y1 + i, input_data, series_list, name)