diff --git a/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/system_performance_plotter_base.py b/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/system_performance_plotter_base.py index bd973142..1fe33e55 100644 --- a/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/system_performance_plotter_base.py +++ b/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/system_performance_plotter_base.py @@ -22,8 +22,8 @@ "control", "system", ] -LINESTYLES = ["solid", "dashed"] -NUM_LINESTYLES = len(LINESTYLES) +LINE_STYLES = ["solid", "dashed"] +NUM_LINE_STYLES = len(LINE_STYLES) COLORS = plt.get_cmap("tab20") NUM_COLORS = len(COLORS.colors) @@ -118,7 +118,7 @@ def run(self): stamp = raw_data_arr[:, 0] rate = raw_data_arr[:, 1] color = COLORS(idx % NUM_COLORS) - linestyle = LINESTYLES[(idx // NUM_COLORS) % NUM_LINESTYLES] + linestyle = LINE_STYLES[(idx // NUM_COLORS) % NUM_LINE_STYLES] ax.plot(stamp, rate, label=name, color=color, linestyle=linestyle) self.report_data[name].append(np.round(rate.mean(), 3))