Repository navigation
chang_credible: pass scatter's size, colour and marker by keyword - #419
Conversation
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
✅ Deploy Preview for lustrous-melomakarona-3ee73e ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ValidationThis pull request's build, 45009483978 at
Against 45001954151, two pages differ, out of 85:
The build log has no Sphinx warning. (Corrected 2026-11-22: the page has two figures, one per plot_equilibria call; the conclusion is unchanged.) |
There was a problem hiding this comment.
🔵 Needs a closer look
Human review is warranted because the change affects executable lecture content and rendered educational figures, requiring confirmation that the documented output and Matplotlib visuals remain equivalent across supported build environments.
No open issues 🎉
What changed in this PR
Updates the chang_credible lecture to use keyword arguments for Matplotlib's Axes.scatter, eliminating the positional marker deprecation while preserving the existing plot output.
Changes:
- Passes scatter size, colour, and marker via
s,c, andmarkerkeywords. - Keeps the existing plotting values and behavior unchanged.
| File | Description |
|---|---|
| lectures/chang_credible.md | Updates the plot_equilibria scatter call to use keyword arguments for marker size, colour, and style. |
Review effort: Lite (adaptive)
chang_credible's scatter calls pass size, colour and marker by keyword (s=, c=, marker=), the same change as QuantEcon/lecture-python-advanced.myst#419. Matplotlib 3.11 marks those arguments keyword-only and warned on the positional form; the warnings are gone and the figures are byte-identical. Fully validated: fresh no-cache builds of this branch and of main, compared page by page. Reviewed by @mmcky on GitHub, who passed it for merge in the infrastructure organiser session, after the organiser's fresh review. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…python-advanced.myst#420 `tools/sync --update --pin-only advanced` moves advanced's pin from 63ef0be to ceed1b2. That range is two commits: QuantEcon/lecture-python-advanced.myst#419, which changes chang_credible.md, and QuantEcon/lecture-python-advanced.myst#420, which changes only advanced's lectures/_static/quant-econ.bib. The pool's chang_credible takes advanced's copy, so the nightly drift-check brings #419's change in through its refresh pull request, reviewed as usual; this pull request changes no pool lecture. `tools/bib-merge --reconstruct --write` then regenerates lectures/_static/quant-econ.bib. Its header now reads advanced=8453bb3ec5a0ab0e and rulings 0fc43cfacdadb4e1 (body 84ba45fbccdab6e6). Two entries change, the two titles the rulings brace: hansen1995discounted ({G}aussian; journal "IEEE Transactions on Automatic Control") and SvenssonWilliams2009 ({DSGE}, {Markov}). The branch took main (f63d746, #88) in a merge commit first, so the header carries intro's re-seal too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
) Re-seals advanced's take rulings in sync/bib.yml for the copies QuantEcon/lecture-python-advanced.myst#420 wrote, and moves the pool's advanced pin from 63ef0be to ceed1b2, that pull request's merge. Eight rulings renew advanced's seal; two of them also set braced titles, so the capitals survive the sentence-case reference style: hansen1995discounted becomes "Discounted linear exponential quadratic {G}aussian control" in IEEE Transactions on Automatic Control, and SvenssonWilliams2009 braces {DSGE} and {Markov}. tools/bib-merge --reconstruct --write updated the merged bibliography: those two entries change, and the header reads advanced=8453bb3ec5a0ab0e, rulings 0fc43cfacdadb4e1, body 84ba45fbccdab6e6. The pin's range also holds QuantEcon/lecture-python-advanced.myst#419's chang_credible change, which the nightly refresh brings into the pool separately; this changes no pool lecture. The two entries are lecture content: @mmcky reviewed this exact diff and chose "Merge it now" in the infrastructure organiser session, after the organiser's fresh review of a69e9eb and its own read of the full diff at 8d4a898. It lands before the nightly pool sync at 03:47Z. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The nightly of 2026-11-23 re-copies 19 pool lectures whose canonical copy moved upstream: intermediate 12 (QuantEcon/lecture-python.myst#1144, QuantEcon/lecture-python.myst#1147 and QuantEcon/lecture-python.myst#1141), advanced 5 (QuantEcon/lecture-python-advanced.myst#419, QuantEcon/lecture-python-advanced.myst#421 and QuantEcon/lecture-python-advanced.myst#422) and intro 2 (QuantEcon/lecture-python-intro#876). In the merged bibliography only the header's jax input hash changes (QuantEcon/lecture-jax#377); its 1011 entries are unchanged. In sync/ledger.yml only pins and digests change. Checked by mini:project-monorepo's recompute from a clean clone at the base, which gives the head's tree, and by the organiser's independent review: each lecture is byte-identical to its upstream copy at the new pin once the recorded asset rewrites are applied, no bibliography key is missing and no cross-reference is broken. The site-build, pool-check and drift-check runs on the head were green before merge. Lecture content: reviewed by @mmcky ("Approve runs, then merge") in the organiser session, at head a815b36. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
What
plot_equilibriain chang_credible passed the size, colour and marker toAxes.scatterpositionally: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)Passing
markerpositionally has been deprecated since Matplotlib 3.10, and it becomes keyword-only in 3.12. So each of the page's two calls ofplot_equilibriaprints this into its output:The values are unchanged, so the figure should be the same. The two warnings were found by the environment scan of 2026-11-19, for QuantEcon/project-monorepo#77, and they are also in the build of this site from the lecture monorepo, QuantEcon/lectures#86.
lecture-dppublishes a copy of this lecture with the same line; it follows once this is merged.Validation
Done on 2026-11-22; the evidence is in the comment below. The build re-executed chang_credible: the two warnings are gone, the three figures are byte-identical to main's, and nothing else on the page changed.
This changes lecture content, so it needs a person's review.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL