From c9ac8f1e6ac37073482e34140fe19e5b03ca32c1 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Thu, 12 May 2022 09:35:14 +0200 Subject: [PATCH] Fix labels --- slr/get_slr_distributions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slr/get_slr_distributions.py b/slr/get_slr_distributions.py index 25f8fdc..232180c 100644 --- a/slr/get_slr_distributions.py +++ b/slr/get_slr_distributions.py @@ -103,11 +103,13 @@ if PLOT: y = stats.cauchy(loc=row['loc'], scale=row['scale']).pdf(x) ax.plot(x, y * row['scale'], c=c[j]) if j % 2 == 0: - ax.annotate(f' {i}', (x[y.argmax()], 1), + ax.annotate(f' {i}', (x[y.argmax()], 0.32), ha='center', va='bottom', + clip_on=False, rotation=90) + ax.set_ylim(top=0.35) ax.set_xlabel('SLR (m)', labelpad=10) ax.set_ylabel('Probability density (-)', labelpad=10)