Python Forum
display graph in columns and rows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
display graph in columns and rows
#1
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.
Reply
#2
hi

i can help you
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Merging rows and adding columns based on matching index pythonnewbie78 3 749 Dec-24-2023, 11:51 AM
Last Post: Pedroski55
  How to display percentage above the bars in bar graph? WhatsupSmiley 0 8,196 Mar-31-2020, 07:21 PM
Last Post: WhatsupSmiley
  read_csv error and rows/columns missing karlito 9 5,230 Nov-11-2019, 06:48 AM
Last Post: karlito
  Drop rows if a set of columns has a value dervast 1 1,953 Sep-12-2019, 04:18 PM
Last Post: sd_0912
  Dropping all rows of multiple columns after the max of one cell Thunberd 2 2,918 Jun-01-2018, 10:18 PM
Last Post: Thunberd
  Get rows with same value from dataframe of particular columns angelwings 1 2,708 Apr-11-2018, 02:40 AM
Last Post: scidam
  summing rows/columns more quickly jon0852 3 2,853 Feb-12-2018, 02:24 AM
Last Post: ka06059
  Stack dataframe columns into rows klllmmm 0 3,007 Sep-03-2017, 02:26 AM
Last Post: klllmmm

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020