#1817·visdom

错误: pie(), boxplot(), stem(), _surface() 和 histogram2d() 在大小为 1 的输入中崩溃,原因是无条件调用了 np.squeeze()。

作者: munazzaghazali7-hash创建于 2026年9月10日更新于 2026年9月10日

Bug Description Five plotting methods crash with AssertionError when given size-1 inputs. The root cause is an unconditional np.squeeze() call that collapses valid (1,) arrays to 0-d scalars before the ndim assertion runs. This is the same bug class fixed for bar(), histogram(), and sunburst() in #1788.

内容来源: fossasia/visdom