Catplot with Seaborn, side by side

后端 未结 1 1696
面向向阳花
面向向阳花 2021-01-26 19:10

I\'m using this code below to plot a catplot with Seaborn. Its working ok.

sns.catplot(data=df_gol,
            x=\'MODALIDADE_DO_VOO\',
            y=\'VALOR\',         


        
相关标签:
1条回答
  • 2021-01-26 20:02

    use the col= keyword instead of the row= to organize your subplots in columns. You can adjust the number of plots per row by using the col_wrap= argument.

    sns.catplot(data=df_gol,
                x='MODALIDADE_DO_VOO',
                y='VALOR',col='DESTINO',       # <--- replaced row= by col=
                kind='box',height=3, aspect=1,
                color='red')
    
    0 讨论(0)
提交回复
热议问题