python做词云图的时候出错
ValueError: Couldn't find space to draw. Either the Canvas size is too small or too much of the image is masked out怎么进行调试,谢谢各位大佬
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.")
报告相同问题?