Skip to main content
 首页 » 编程设计

python之Seaborn Graph之绘图不从 (0,0) 开始

2024年10月01日7pengyingh

如何使图表默认从 (0,0) 开始?我在使用 seaborn 的每个 graphicla 情节中都遇到了问题

g = sns.FacetGrid(data=titanic,col='sex') 
g.map(plt.hist,'age') 

请您参考如下方法:

对于不会影响脚本中的所有图而只会影响单个轴的非全局更改,有 ax.margins()