python做词云图的时候出错
ValueError: Couldn't find space to draw. Either the Canvas size is too small or too much of the image is masked out怎么进行调试,谢谢各位大佬
你这个输出图像没有空间了,也可能是设置的太小或太大,建议把字体设置合适一些,因为我发现这个错误的原因 和字体有关
except IndexError:
try:
font_size = sizes[0]
except IndexError:
raise ValueError(
"Couldn't find space to draw. Either the Canvas size"
" is too small or too much of the image is masked "
"out.")
您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632