Skip to content

Commit

Permalink
label rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen committed Jan 7, 2021
1 parent 45ea1c6 commit f0a64ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plots/test_score_per_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@
patch.set_facecolor(color)

# rotate labels
for tick in ax.get_xticklabels():
tick.set_rotation(70)
tick.set_ha("right")
plt.setp( ax.xaxis.get_majorticklabels(), rotation=70, ha="right", rotation_mode="anchor")

# add legend
labels = [LOSS_FUNTION_CONFIG[l]["display_name"] for l in LOSS_FUNTION_ORDER]
Expand Down

0 comments on commit f0a64ed

Please sign in to comment.