import seaborn as sns %matplotlib inline #只支持数值型 sns.pairplot(df,hue = 'Survived',vars = ['SibSp','Fare','Pclass'])
seanborn 是基于matplot封装的,视效更好。 %matplotlib inline —— 这个是为了在jupyter notebook中显示图像。