Python AxesSubplot如何显示图片

来源:互联网 发布:三维码生成器软件 编辑:程序博客网 时间:2024/05/01 04:33

由于,AxesSubplot不能直接调用matplotlib的show()方法得出figure
所以,这里给出显示方法,具体代码如下:

import matplotlib.pyplot as plt
sns.distplot(train['SalePrice']);#显示该图
plt.show()



0 0
原创粉丝点击