Skip to content

fix: match example05 figures to MATLAB reference#69

Merged
iahncajigas merged 1 commit intomainfrom
fix/example05-match-matlab-figures
Mar 20, 2026
Merged

fix: match example05 figures to MATLAB reference#69
iahncajigas merged 1 commit intomainfrom
fix/example05-match-matlab-figures

Conversation

@iahncajigas
Copy link
Copy Markdown
Contributor

Summary

  • Match all 6 figures in Example 05 (PPAF/PPHF decoding) to the MATLAB reference output
  • Fig 2: CI rendered as thin lines (not shaded fill), thicker decoded/actual lines, ylabel added
  • Figs 3-5: Use unfilled circle markers for Start/Finish (MATLAB default), add legends
  • Fig 6: Overlay all 20 individual simulation traces as thin dashed lines (matching MATLAB in-loop plotting), thick mean traces on top, Start/Finish markers + legend

Test plan

  • CI checks pass (unit-lint, notebook-smoke, regenerate-figures)
  • Compare regenerated fig05/fig06 PNGs against MATLAB nSTATPaperExamples_28.png and _29.png

🤖 Generated with Claude Code

Fig 2 (univariate decoding):
- Replace fill_between CI shading with thin CI *lines* matching MATLAB
- Increase decoded/actual linewidth to 4 (was 2) matching MATLAB
- Add ylabel "Stimulus" and increase title fontsize to 18

Fig 3 (reach setup):
- Use unfilled circle markers for Start/Finish (MATLAB default)

Fig 4 (PPAF goal vs free):
- Add Start/Finish unfilled circle markers with legend on 2D path

Fig 5 (hybrid setup):
- Use unfilled circle markers for Start/Finish
- Add Start/Finish legend on reach path subplot

Fig 6 (hybrid decoding summary):
- Overlay all 20 individual simulation traces as thin dashed lines
  (matching MATLAB's in-loop plotting of S_est, X_est, MU_est)
- Plot thick solid mean traces on top (matching MATLAB post-loop code)
- Add Start/Finish unfilled markers and legend on 2D reach path
- Set state axis ylim to [0.5, 2.5] matching MATLAB

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@iahncajigas iahncajigas merged commit 283807e into main Mar 20, 2026
14 checks passed
@iahncajigas iahncajigas deleted the fix/example05-match-matlab-figures branch March 20, 2026 04:35
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.

1 participant