方法plt.axis()显示错误,因为字符串对象不可调用
我试图重新运行代码以检查是否已使用任何plt轴但无效了
答案 0 :(得分:1)
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"