Add p-values to plotSeqCorr legend and fix LaTeX rendering#62
Merged
iahncajigas merged 2 commits intomainfrom Mar 14, 2026
Merged
Add p-values to plotSeqCorr legend and fix LaTeX rendering#62iahncajigas merged 2 commits intomainfrom
iahncajigas merged 2 commits intomainfrom
Conversation
…labels - Rewrite plotSeqCorr to match MATLAB: plot all models with color cycling, compute ρ and p-value via scipy.stats.pearsonr, show in legend - Add _ensure_mathtext() helper to wrap \lambda labels in $...$ for matplotlib mathtext rendering - Apply _ensure_mathtext to KSPlot legend labels - Update plotResults to call plotSeqCorr with fit_num=None (all models) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…e layout - b0/b1 distributions: N(0,1) matching MATLAB randn (was N(0,0.3) and N(1,0.5)) - Q process noise: std(diff(stimulus)) matching MATLAB (was fixed 0.001) - CI: use z=1.96 with min/max ordering matching MATLAB (was ±2σ) - Figure 1: add CIF panel (3-panel layout matching MATLAB) - Figure 2: black=decoded, blue=actual matching MATLAB color convention - Also fix paper_examples.py b0/b1 distributions for consistency - Regenerate affected docs figures (examples 01, 03, 05) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
λ_PSTH, ρ=0.21 (p=0.17))_ensure_mathtext()helper that wraps\lambdalabels in$...$for proper matplotlib rendering (λ₁ instead of\lambda_1)plotSeqCorr(fit_num=None)to show all models (matching MATLAB)Test plan
🤖 Generated with Claude Code