Skip to content

Commit 5328d0c

Browse files
committed
Fix rotation bug
1 parent d02da6f commit 5328d0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cellmapper/model/evaluate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ def plot_confusion_matrix(
292292
ax.xaxis.tick_top()
293293
ax.xaxis.set_label_position("top")
294294
ax.set_title("") # Remove title to avoid overlap
295+
# Rotate labels to point outward (opposite direction from bottom)
296+
plt.setp(ax.get_xticklabels(), rotation=90, ha="left", va="center")
295297

296298
# Add annotation color bars if colors are available
297299
if show_annotation_colors and labels is not None:

0 commit comments

Comments
 (0)