2016-04-06 6 views
2

Hallo allerseits Ich versuche einen Kaggle-Tutorial-Code auf den Iris-Datensatz anzuwenden.Python seaborn graphics

Leider, wenn ich den Code für die grafische Darstellung excecute ich nur diese Ausgabe ohne zu sehen, jede Diagramm sehen kann:

matplotlib.axes._subplots.AxesSubplot at 0x9abf9b0

eine Idee?

Dies ist der Code

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

kann '%% matplotlib inline' oder' iris.plot (...). Show() 'benötigen –

Antwort

0

Wenn Sie IPython Notebook verwenden, einfach den %pylab inline Befehl verwenden, bevor Sie Ihr Grundstück machen. Wenn nicht, versuchen Sie plt.show(), nachdem Sie Ihre Handlung gemacht haben.