Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/346.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python matplotlib中的Seaborn点图行为_Python_Matplotlib_Seaborn - Fatal编程技术网

Python matplotlib中的Seaborn点图行为

Python matplotlib中的Seaborn点图行为,python,matplotlib,seaborn,Python,Matplotlib,Seaborn,大家好,我正在关注一个使用seaborn的kaggle titanic教程,并尝试使用matplotlib进行相同的绘图 grid = sns.FacetGrid(train_df, row='Embarked', size=2.2, aspect=1.6) grid.map(sns.pointplot, 'Pclass', 'Survived', 'Sex', palette='deep') grid.add_legend() 我想为它使用matplotlib函数。我

大家好,我正在关注一个使用seaborn的kaggle titanic教程,并尝试使用matplotlib进行相同的绘图

    grid = sns.FacetGrid(train_df, row='Embarked', size=2.2, aspect=1.6)
    grid.map(sns.pointplot, 'Pclass', 'Survived', 'Sex', palette='deep')
    grid.add_legend()

我想为它使用matplotlib函数。我尝试使用df.plot,但似乎无法决定要在x&y中包括哪些以及如何获取子绘图以显示matplotlib代码。您的问题是什么?显示matplotlib代码。您的问题是什么?