Python Seaborn图-绘图不从(0,0)开始
默认情况下,如何使图形从(0,0)开始?我在使用seaborn的每个graphicla绘图中都遇到了问题Python Seaborn图-绘图不从(0,0)开始,python,seaborn,Python,Seaborn,默认情况下,如何使图形从(0,0)开始?我在使用seaborn的每个graphicla绘图中都遇到了问题 g = sns.FacetGrid(data=titanic,col='sex') g.map(plt.hist,'age') 对于不会影响脚本中的所有绘图,而只影响单个轴的非全局更改,使用此代码设置当前轴的x限制: plt.xlim(0) 显示一些复制问题的代码rry:g=sns.FacetGrid(data=titanic,col='sex')g.map(plt.hist,'age'
g = sns.FacetGrid(data=titanic,col='sex')
g.map(plt.hist,'age')
对于不会影响脚本中的所有绘图,而只影响单个轴的非全局更改,使用此代码设置当前轴的x限制:
plt.xlim(0)
显示一些复制问题的代码rry:g=sns.FacetGrid(data=titanic,col='sex')g.map(plt.hist,'age'))