Skip to content

Commit

Permalink
fix typo: LINESTYLES -> LINE_STYLES
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Dec 27, 2024
1 parent 33d330c commit a422921
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit a422921

Please sign in to comment.