Skip to content

Commit d15120a

Browse files
committed
Add markers
1 parent 98b08e6 commit d15120a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

codeclash/analysis/viz/line_chart_per_round_win_rate.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from matplotlib import pyplot as plt
88
from tqdm import tqdm
99

10-
from codeclash.analysis.viz.utils import ASSETS_DIR, FONT_BOLD, MODEL_TO_COLOR, MODEL_TO_DISPLAY_NAME
10+
from codeclash.analysis.viz.utils import ASSETS_DIR, FONT_BOLD, MARKERS, MODEL_TO_COLOR, MODEL_TO_DISPLAY_NAME
1111
from codeclash.constants import LOCAL_LOG_DIR, RESULT_TIE
1212

1313

@@ -99,16 +99,18 @@ def aggregate_win_rates_across_games(profiles):
9999

100100
# Create line chart of win rate progression per player
101101
plt.figure(figsize=(6, 6))
102+
idx = 0
102103
for pid, win_rates in lines.items():
103104
plt.plot(
104105
range(1, 16),
105106
win_rates,
106-
marker="o",
107+
marker=MARKERS[idx % len(MARKERS)],
107108
label=MODEL_TO_DISPLAY_NAME[pid],
108109
linewidth=1,
109110
markersize=6,
110111
color=MODEL_TO_COLOR[pid],
111112
)
113+
idx += 1
112114

113115
# plt.title("Win Rate Progression per Round", fontsize=16, fontweight="bold")
114116
plt.xlabel("Round", fontsize=20, fontproperties=FONT_BOLD)

0 commit comments

Comments
 (0)