From 7a4bdc5f9592fd1d27ffbc240856ae23c40ef8a9 Mon Sep 17 00:00:00 2001 From: Longye Tian Date: Fri, 26 Apr 2024 11:56:54 +1000 Subject: [PATCH] Update scalar_dynam.md fix y_label format problem in plot45 --- lectures/scalar_dynam.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/scalar_dynam.md b/lectures/scalar_dynam.md index 741503f5..d642dc6b 100644 --- a/lectures/scalar_dynam.md +++ b/lectures/scalar_dynam.md @@ -336,7 +336,7 @@ def plot45(g, xmin, xmax, x0, num_arrows=6, var='x'): ax.set_xlim(xmin, xmax) ax.set_ylim(xmin, xmax) ax.set_xlabel(r'${}_t$'.format(var), fontsize=14) - ax.set_ylabel(r'${}_{t+1}$'.format(var), fontsize=14) + ax.set_ylabel(r'${}_{}$'.format(var, str('{t+1}')), fontsize=14) hw = (xmax - xmin) * 0.01 hl = 2 * hw