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 3371f46 commit 505fcbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metplotpy/plots/tcmpr_plots/line/median/tcmpr_line_median.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 505fcbb

Please sign in to comment.