diff --git a/metplotpy/plots/tcmpr_plots/line/median/tcmpr_line_median.py b/metplotpy/plots/tcmpr_plots/line/median/tcmpr_line_median.py index ea0a49cb..c8c3e6c2 100755 --- a/metplotpy/plots/tcmpr_plots/line/median/tcmpr_line_median.py +++ b/metplotpy/plots/tcmpr_plots/line/median/tcmpr_line_median.py @@ -22,7 +22,7 @@ def __init__(self, config_obj, column_info, col, case_data, input_df, stat_name) # 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): if self.yaxis_1 is None or len(self.yaxis_1) == 0: @@ -74,7 +74,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 = TcmprSeriesLineMedian(self.config_obj, num_series_y1 + i, input_data, series_list, name) series_list.append(series_obj)