From 6ad3f64c93aae675fbcf2d6e9e4bfa2f444710ff Mon Sep 17 00:00:00 2001 From: martin-springer Date: Mon, 2 Dec 2024 16:57:46 -0500 Subject: [PATCH] update degradation_summary_plots label to f-strings --- rdtools/plotting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rdtools/plotting.py b/rdtools/plotting.py index dfd1c921..b589dab7 100644 --- a/rdtools/plotting.py +++ b/rdtools/plotting.py @@ -95,9 +95,9 @@ def degradation_summary_plots(yoy_rd, yoy_ci, yoy_info, normalized_yield, ax2.set_xlim(hist_xmin, hist_xmax) label = ( - ' $R_{d}$ = %.2f%%/yr \n' - 'confidence interval: \n' - '%.2f to %.2f %%/yr' % (yoy_rd, yoy_ci[0], yoy_ci[1]) + f" $R_{{d}}$ = {yoy_rd:.2f}%/yr \n" + f"confidence interval: \n" + f"{yoy_ci[0]:.2f} to {yoy_ci[1]:.2f} %/yr" ) if detailed: n = yoy_values.notnull().sum()