Skip to content

Fix ar1_turningpts build: drop figsize from az.plot_trace#930

Open
jstac wants to merge 1 commit into
mainfrom
fix-ar1-turningpts-figsize
Open

Fix ar1_turningpts build: drop figsize from az.plot_trace#930
jstac wants to merge 1 commit into
mainfrom
fix-ar1-turningpts-figsize

Conversation

@jstac

@jstac jstac commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Closes #929.

ar1_turningpts.md calls az.plot_trace(trace, figsize=(17, 6)). Under arviz 1.x (the arviz_plots backend) plot_trace no longer accepts figsize and raises ValueError, failing notebook execution. It is latent on main only because the execution cache predates arviz 1.x.

Fix: drop the figsize kwarg (arviz uses its default size, also more consistent with the figure styleguide).

Verified against arviz 1.2.0 that az.plot_trace(idata) without figsize, and trace.posterior.rho.values attribute access, both still work — the figsize kwarg was the only problem. A repo-wide grep confirms this is the last remaining arviz plotting call passing figsize (the same fix in ar1_bayes.md is in #927).

🤖 Generated with Claude Code

arviz 1.x dropped the figsize kwarg on plot_trace, which raises
ValueError and fails notebook execution once the build cache is
invalidated. Remove figsize from the az.plot_trace call (arviz uses its
default size). Verified against arviz 1.2.0 that plot_trace(idata) and
trace.posterior.rho access both still work.

Closes #929

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-930--sunny-cactus-210e3e.netlify.app

Commit: 90f2a10

📚 Changed Lectures


Build Info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ar1_turningpts] Build breaks under arviz 1.x: figsize kwarg on az.plot_trace

1 participant