[Python] Plotting bar chart with X, Y and Z axis in Matplotlib

Discussão em 'Python' iniciado por Stack, Julho 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have below data:

    [​IMG]

    I am trying to plot bar chart in Matplotlib using below code:

    pyplot.bar(gender, ward, width, color='orange')
    pyplot.bar(count, gender, width, color='tomato')


    Below is the result:

    [​IMG]

    My expectation is as below which is created in Excel:

    [​IMG]

    How can I get the same in Matplotlib?

    Continue reading...

Compartilhe esta Página