Skip to content

Commit

Permalink
issue #383 provide supporting plotting multiple plot types with singl…
Browse files Browse the repository at this point in the history
…e config file
  • Loading branch information
bikegeek committed Feb 19, 2024
1 parent 992df46 commit 3371f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metplotpy/plots/tcmpr_plots/line/mean/tcmpr_line_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3371f46

Please sign in to comment.