From caa79003040f8950abb25d205e97ef61f1e5f610 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sun, 22 Nov 2026 20:50:10 +1100 Subject: [PATCH] chang_credible: pass scatter's size, colour and marker by keyword plot_equilibria passed `s`, `c` and `marker` to Axes.scatter positionally. Passing `marker` positionally is deprecated since Matplotlib 3.10 and becomes keyword-only in 3.12, so each of the page's two calls of plot_equilibria printed a MatplotlibDeprecationWarning into its output. The values are unchanged, so the figure is the same. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL --- lectures/chang_credible.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/chang_credible.md b/lectures/chang_credible.md index 7d37c2a8..02f817bc 100644 --- a/lectures/chang_credible.md +++ b/lectures/chang_credible.md @@ -846,7 +846,7 @@ def plot_equilibria(ChangModel): # Add point showing Ramsey Plan idx_Ramsey = np.where(ext_C[:, 0] == max(ext_C[:, 0]))[0][0] R = ext_C[idx_Ramsey, :] - ax.scatter(R[0], R[1], 150, 'black', 'o', zorder=1) + ax.scatter(R[0], R[1], s=150, c='black', marker='o', zorder=1) w_min = min(ext_C[:, 0]) # Label Ramsey Plan slightly to the right of the point