python - 如何在绘制 wordcloud 时绘制不可见的轴
问题描述
方法 plt.axis() 显示错误,因为字符串对象不可调用
我尝试重新运行代码以检查是否已使用任何 plt 轴但无效
解决方案
plt.figure(figsize=(12,10),facecolor = 'none', edgecolor='white')
plt.imshow(lem_word_cloud)
plt.title("Lemming Cloud of Train Data")
plt.axis("off")
plt.show();
"still not sure why was the error. Now it is working after restarting"
推荐阅读
- logging - .NET Core 3.1 / NET 5 控制台日志在 Main 方法中不起作用
- aws-lambda - 如何在 AWS Lambda/API Gateway 和 NodeJS Sequalize 环境中连接到租户特定的数据库
- javascript - useLazyQuery Typescript 类型错误:找不到名称“accountId”
- java - 如何在空间数据库android中存储多边形数据?
- sql - 如何在 HIVESql 中使用 split_part 函数
- ubuntu - 在变量中设置给定目录的路径并在 Ubuntu 中引用它
- php - PhpMailer 被发送到 gmail 和 hotmail 中的垃圾邮件
- javascript - 如何使用纯 javascript 创建一个可拖动的网站?
- quanteda - 如何计算文件?
- pytest - Zephyr scale 服务器:通过自动化 API 将测试结果上传到 Zephyr Scale