From 0ab3aaa1a9920ae81dad73ef73f58fc86ad831f5 Mon Sep 17 00:00:00 2001 From: ljvmiranda921 Date: Sat, 12 Oct 2024 18:08:09 -0700 Subject: [PATCH] [WIP] Update --- analysis/avg_agreement_final.py | 9 ++++++++- analysis/plot_results.py | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/analysis/avg_agreement_final.py b/analysis/avg_agreement_final.py index fb33d66..25ed807 100644 --- a/analysis/avg_agreement_final.py +++ b/analysis/avg_agreement_final.py @@ -3,6 +3,7 @@ import numpy as np FONT_SIZES = {"small": 12, "medium": 16, "large": 18} +COLORS = {"green": "#355145", "purple": "#d8a6e5", "orange": "#fe7759"} PLOT_PARAMS = { "font.family": "serif", @@ -48,7 +49,13 @@ plt.figure(figsize=(7, 7)) x_pos_sorted = np.arange(len(labels_sorted)) -ax1 = sns.barplot(x=x_pos_sorted, y=means_sorted, errorbar=None, color="gray", edgecolor="k") +ax1 = sns.barplot( + x=x_pos_sorted, + y=means_sorted, + errorbar=None, + color=COLORS.get("orange"), + edgecolor=COLORS.get("green"), +) plt.errorbar(x_pos_sorted, means_sorted, yerr=std_devs_sorted, fmt="none", c="black", capsize=5) # ax1.spines["top"].set_color("black") diff --git a/analysis/plot_results.py b/analysis/plot_results.py index 9b58f03..1ec28c4 100644 --- a/analysis/plot_results.py +++ b/analysis/plot_results.py @@ -307,8 +307,8 @@ def plot_ling_dims( y=dim, data=lingdf, ax=ax, - color="gray", - edgecolor="k", + color=COLORS.get("orange"), + edgecolor=COLORS.get("green"), width=0.4 if dim == "Resource Availability" else 0.7, ) ax.set_title(dim)