由于,AxesSubplot不能直接调用matplotlib的show()方法得出figure 所以,这里给出显示方法,具体代码如下: import matplotlib.pyplot as plt sns.distplot(train['SalePrice']);#显示该图 plt.show()