From f793019cbdf04907ed4bb3f1411ec02589f250a0 Mon Sep 17 00:00:00 2001 From: Martin Reuter Date: Sun, 15 Dec 2024 02:02:24 +0100 Subject: [PATCH] convert to f-string --- lapy/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lapy/plot.py b/lapy/plot.py index 1db8ecc..04711a1 100644 --- a/lapy/plot.py +++ b/lapy/plot.py @@ -171,7 +171,7 @@ def _get_colorval(t, colormap): # compute new color via linear interpolation cval = np.rint(rv1 + tt * (rv2 - rv1)).astype(int) # format as string again - cstr = "rgb(%d, %d, %d)" % (cval[0], cval[1], cval[2]) + cstr = f"rgb({cval[0]:d}, {cval[1]:d}, {cval[2]:d})" return cstr