Skip to content

Conversation

CalebG6
Copy link

@CalebG6 CalebG6 commented Oct 1, 2025

Description

In the dotplot.py file I added a check to see if the values array has any NaNs and removed them locally if it does. Reasoning for this is because the backend matplot dot_plot function would get a NaN binwidth causing a deadloop.
Screenshot 2025-10-01 140325

from numpy import nan

arviz.plot_dot([0.81449801, 0.8748649 ,        nan,        nan,        nan], show=False)

The above plot uses this code
closes #2471

Checklist

  • Follows official PR format
  • Includes a sample plot to visually illustrate the changes (only for plot-related functions)
  • Code style correct (follows pylint and black guidelines)
  • Changes are listed in changelog

📚 Documentation preview 📚: https://arviz--2483.org.readthedocs.build/en/2483/

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.

Dead loop in plot_dot
1 participant