2016-04-06 15 views
2

親愛なるすべて私はアイリスデータセットにkaggleチュートリアルコードを適用しようとしています。Python seabornグラフィック

私はグラフのコードをexcecuteとき残念ながら、私は任意のグラフを見ることなく、この出力を見ることができます:

matplotlib.axes._subplots.AxesSubplot at 0x9abf9b0

任意のアイデア?

あなたがあなたのプロットを作る前に、単に%pylab inlineコマンドを使用し、IPythonノートブックを使用している場合、これはコード

import warnings # current version of seaborn generates a bunch of warnings that we'll ignore 
warnings.filterwarnings("ignore") 
import seaborn as sns 
import matplotlib.pyplot as plt 
sns.set(style="white", color_codes=True) 

# Next, we'll load the Iris flower dataset, which is in the "../input/" directory 
iris = pd.read_csv("../input/Iris.csv") # the iris dataset is now a Pandas DataFrame 

# We'll use this to make a scatterplot of the Iris features. 
iris.plot(kind="scatter", x="SepalLengthCm", y="SepalWidthCm") 
+0

「%% matplotlib inline」または「iris.plot(...)」が必要な場合があります。 –

答えて

0

です。そうでない場合は、プロット後にplt.show()を試してください。