Skip to content

Commit

Permalink
latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
DSilva27 committed Dec 10, 2024
1 parent dce64c0 commit 566e1d9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/cryo_challenge/_svd/svd_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ def compute_gt_dist(z):
populations_ref = submissions_data[label_ref]["populations"]
embedding_ref = gt_embedding_results["submission_embedding"][label_ref]

n_cols = 4
labels.pop(labels.index(label_ref))

n_cols = 3

if n_cols > len(labels):
n_cols = len(labels)
Expand All @@ -491,15 +493,15 @@ def compute_gt_dist(z):
for i in range(len(labels)):
label = labels[i]
embedding = gt_embedding_results["submission_embedding"][label]
ax.flatten()[i].text(
0.05,
0.95,
str(i + 1),
fontsize=12,
transform=ax.flatten()[i].transAxes,
verticalalignment="top",
bbox=dict(facecolor="white", alpha=0.5),
)
# ax.flatten()[i].text(
# 0.05,
# 0.95,
# str(i + 1),
# fontsize=12,
# transform=ax.flatten()[i].transAxes,
# verticalalignment="top",
# bbox=dict(facecolor="white", alpha=0.5),
# )

# ax.flatten()[i].bar(
# edges[:-1],
Expand Down

0 comments on commit 566e1d9

Please sign in to comment.