Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plotting confidence bands with gaps #364

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Conversation

michael-nml
Copy link
Collaborator

Plotly doesn't correctly handle fills with gaps. This is an issue for confidence bands as they are being plotted currently. Work around is to tell Plotly to fill the gaps, which causes correct rendering. Unfortunately it does fill the gap, but this is the easiest work around for now.

See plotly/plotly.js#2736 for context.

Plotly doesn't correctly handle fills with gaps. This is an issue for
confidence bands as they are being plotted currently. Work around is to
tell Plotly to fill the gaps, which causes correct rendering.
Unfortunately it does fill the gap, but this is the easiest work around
for now.

See plotly/plotly.js#2736 for context.
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (808913c) 78.92% compared to head (796c238) 78.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
+ Coverage   78.92%   78.95%   +0.02%     
==========================================
  Files         107      107              
  Lines        8086     8086              
  Branches     1290     1467     +177     
==========================================
+ Hits         6382     6384       +2     
+ Misses       1364     1363       -1     
+ Partials      340      339       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michael-nml
Copy link
Collaborator Author

Example plots for reference

Before fix

image

After fix

image

@nnansters nnansters merged commit 91f98dc into main Feb 16, 2024
7 of 8 checks passed
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.

2 participants