Skip to content

Commit 62c21b3

Browse files
committed
More png -> pdf
1 parent 578e7a0 commit 62c21b3

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

codeclash/analysis/code_evolve/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,11 @@ def plot_consistency_over_rounds(data_cache: str, output_path: str):
445445
)
446446

447447
# Questions 1a/1b: Consistency over rounds
448-
output_path = ASSETS_DIR / f"line_chart_code_evolution_{args.arena}.png"
448+
output_path = ASSETS_DIR / f"line_chart_code_evolution_{args.arena}.pdf"
449449
plot_consistency_over_rounds(data_cache, output_path=output_path) # Questions 1a and 1b
450450

451451
# Questions 2a/2b: Opponent effect
452-
output_path = ASSETS_DIR / f"heatmap_code_evolution_per_opponent_r1_{args.arena}.png"
452+
output_path = ASSETS_DIR / f"heatmap_code_evolution_per_opponent_r1_{args.arena}.pdf"
453453
plot_opponent_effect_heatmap(data_cache, target_round=1, output_path=output_path) # Question 2a
454-
output_path = ASSETS_DIR / f"heatmap_code_evolution_per_opponent_r15_{args.arena}.png"
454+
output_path = ASSETS_DIR / f"heatmap_code_evolution_per_opponent_r15_{args.arena}.pdf"
455455
plot_opponent_effect_heatmap(data_cache, target_round=15, output_path=output_path) # Question 2b

codeclash/analysis/multiplayer/win_change_rate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def analyze_win_change_rate(log_dir: Path, game_pattern: str = "CoreWar.r15.s100
151151
label.set_fontproperties(FONT_BOLD)
152152

153153
plt.tight_layout()
154-
output_file = ASSETS_DIR / "win_change_rate_comparison.png"
154+
output_file = ASSETS_DIR / "win_change_rate_comparison.pdf"
155155
plt.savefig(output_file, dpi=300, bbox_inches="tight")
156156
print(f"\nVisualization saved to: {output_file}")
157157
plt.close()

codeclash/analysis/multiplayer/win_share.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def analyze_winner_share(log_dir: Path, game_pattern: str = "CoreWar.r15.s1000")
142142
label.set_fontproperties(FONT_BOLD)
143143

144144
plt.tight_layout()
145-
output_file = ASSETS_DIR / "winner_share_comparison.png"
145+
output_file = ASSETS_DIR / "winner_share_comparison.pdf"
146146
plt.savefig(output_file, dpi=300, bbox_inches="tight")
147147
print(f"\nVisualization saved to: {output_file}")
148148
plt.close()

codeclash/analysis/transparent/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,5 +232,5 @@ def analyze_temporal_opponent_access(folder_list):
232232
ax.grid(axis="y", alpha=0.3)
233233

234234
plt.tight_layout()
235-
plt.savefig(ASSETS_DIR / "bar_chart_temporal_opponent_access.png", dpi=300, bbox_inches="tight")
236-
print(f"\nSaved visualization to {ASSETS_DIR / 'bar_chart_temporal_opponent_access.png'}")
235+
plt.savefig(ASSETS_DIR / "bar_chart_temporal_opponent_access.pdf", dpi=300, bbox_inches="tight")
236+
print(f"\nSaved visualization to {ASSETS_DIR / 'bar_chart_temporal_opponent_access.pdf'}")

codeclash/analysis/viz/scatter_codebase_organization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def plot_filename_redundancy_over_rounds(redundancy_df: pd.DataFrame):
567567
)
568568

569569
# Figure styling to match other viz
570-
plt.figure(figsize=(3.5, 6))
570+
plt.figure(figsize=(6, 6))
571571

572572
# Plot one line per model with consistent color & legend label
573573
seen_labels = set()

0 commit comments

Comments
 (0)