refactor: add density plotting helper and enhance plot color customization#851
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the plotting logic in plot_marginal_with_intervals by extracting it into a new helper function, plot_with_intervals, which plots densities with confidence intervals. The review feedback highlights two key issues: first, mutating the style dictionary arguments directly using .pop() introduces unintended side effects, which can be resolved by copying the dictionaries first; second, the refactoring omitted the ax.set_xlim call, which should be restored to maintain the original x-axis limits.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
No description provided.