From dd90b23a1b515cf3137d185f7d490a965174e7fe Mon Sep 17 00:00:00 2001 From: Kaitlin Naughten Date: Tue, 25 May 2021 17:25:41 +0100 Subject: [PATCH] Final final updates to figures, I think? --- projects/pace.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/pace.py b/projects/pace.py index e8e96105..174287c9 100644 --- a/projects/pace.py +++ b/projects/pace.py @@ -3604,6 +3604,11 @@ def ensemble_trend (trends): ax.set_ylim([z_deep, 0]) ax.set_yticks(z_ticks) ax.set_yticklabels([]) + # Remove any trailing zeros in tick labels so axis isn't too crowded + labels = [] + for tick in ax.get_xticks(): + labels.append(round_to_decimals(tick,2)) + ax.set_xticklabels(labels) if r==0: x0 = 0.5 y0 = 0.975