我安装了海运,但是当我从海运网站上做这个例子时,我得到了StopIteration消息,我如何修复它?
进口海运为sns企鹅=sns.load_dataset(“企鹅”) sns.histplot(data=penguins,x="flipper_length_mm")
StopIteration追尾(最近一次调用)单元,第33行,第1行->1 sns.histplot(data=penguins,x="flipper_length_mm")
发布于 2022-11-21 15:46:50
问题似乎是在默认的颜色定义函数中。如果指定颜色,则可以跳过错误:
sns.histplot(data=penguins, x="flipper_length_mm", color='blue')
这为我解决了问题,希望对你也有帮助。干杯
发布于 2022-11-23 14:56:14
问题在于matplotlib==3.6.1
您有两个变体:
pip install matplotlib --upgrade
pip install matplotlib==3.6.0 --force-reinstall
这两种变体都适用于我。
以下是GitHub上的相同问题:https://github.com/mwaskom/seaborn/issues/3072
https://stackoverflow.com/questions/74104246
复制相似问题