[Python] How to make same sized plots with sns, matplotlib

Discussão em 'Python' iniciado por Stack, Abril 10, 2025.

  1. Stack

    Stack Membro Participativo

    plt.figure(figure=(6,8))
    sns.barplot(data=csat_korean,x='grade',y='percentage').set_title('Korean');
    plt.show()
    sns.barplot(data=csat_math,x='grade',y='percentage').set_title('Math');
    plt.show()
    sns.barplot(data=csat_english,x='grade',y='percentage').set_title('English');
    plt.show()


    Hello, the above code is me trying to plot with sns(everything is imported). However, the plots I get are not constant in size. This is the result I get. How would I fix this code so that the plots are same in size, and the last graph is not annoyingly smaller than the other plots?

    Greatly appreciate it!

    Continue reading...

Compartilhe esta Página