Skip to content

Commit

Permalink
[WIP] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ljvmiranda921 committed Oct 13, 2024
1 parent 12d6492 commit 0ab3aaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion analysis/avg_agreement_final.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions analysis/plot_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ab3aaa

Please sign in to comment.