matplotlib__matplotlib-24149
[Bug]: ax.bar raises for all-nan data on matplotlib 3.6.1
Verdict: the fix is stated in the issue (Tier A).
+ except StopIteration: + # this means we found no finite element, fall back to first + # element unconditionally + x0 = cbook.safe_first_element(x0)
The text states the fix: “+ except StopIteration: + # this means we found no finite element, fall back to first + # element unconditionally + x0 = cbook.safe_first_element(x0)”
All 500 SWE-bench Verified tasks · more matplotlib/matplotlib tasks · How the check works