Python Forum

Full Version: display graph in columns and rows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
for col in df[['age','num1','num2','num3','num4']]:
    grid = sns.FacetGrid(data=df,hue='predictor').map(sns.kdeplot,col)
    grid.add_legend()
    plt.show()
As per above code, I am able to generate the graph but it shows all the graphs in one column.

How can I break into eg. 2 rows and 3 columns?

Thanks.
hi

i can help you