How to change a figure's size in Python Seaborn package

前端 未结 6 1718
情深已故
情深已故 2020-12-05 04:32

I\'m having trouble increasing the size of my plot figures using Seaborn (imported as sns). I\'m using sns.pairplot to plot columns of a data frame

6条回答
  •  离开以前
    2020-12-05 05:28

    sns.pairplot "Returns the underlying PairGrid instance for further tweaking" ...for instance changing the figure size:

    g=sns.pairplot(df, kind='reg', x_vars=columns,y_vars = ['Column 1'])
    g.fig.set_size_inches(15,15)
    

提交回复
热议问题