Fixes #12926 - inconsistency upon passing C in hexbin - #26113
Conversation
There was a problem hiding this comment.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
|
Thanks for taking a look, @oscargus I've added a test |
|
Anyone can merge on green CI |
|
Thanks @krooijers and congrats on your first merged PR in Matplotlib. Hope to see you around! |

PR summary
Closes #12926
Around line 4998 in _axes.py two code paths diverge, depending on whether parameter
Cis given. The strict inequality betweenaccumandmincntin L5003 whenC == Noneis not symmetric to the strict inequality at L5017, whenC != None. This causes data points to become "hidden", when the number of data points (accum) is equal tomincnt.'Tis but a scratch: changing
> mincntto>= mincntwas enough to get consistent hexbin plots.PR checklist