bambinos / bambi

BAyesian Model-Building Interface (Bambi) in Python.
https://bambinos.github.io/bambi/
MIT License
1.08k stars 124 forks source link

Fixes color mismatch in plot_cap #698

Closed tjburch closed 1 year ago

tjburch commented 1 year ago

Resolves #685 by explicitly using the first color in the matplotlib cylcer when plotting with a single covariate. Implemented in both numeric and categoric plot types.

After fix, reproducing the issue yields the following:

solved_bug

codecov-commenter commented 1 year ago

Codecov Report

Merging #698 (c4b4b08) into main (39a06da) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #698   +/-   ##
=======================================
  Coverage   87.91%   87.91%           
=======================================
  Files          43       43           
  Lines        3318     3318           
=======================================
  Hits         2917     2917           
  Misses        401      401           
Impacted Files Coverage Δ
bambi/plots/plot_types.py 83.48% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

tomicapretto commented 1 year ago

Thanks a lot @tjburch !