[Python] Changing and altering ranges of x and y axis in a line graph in MatplotLib

Discussão em 'Python' iniciado por Stack, Maio 23, 2025.

  1. Stack

    Stack Membro Participativo

    I have created a line graph:

    [​IMG]

    I want to change my x-axis which is the 365 days of a year to 12 months but need to plot values of each date. I want to develop a graph like this:

    [​IMG]

    My DataFrame looks like this:

    Month Date max min
    0 1.0 1900-01-01 15.6 -16.0
    1 1.0 1900-01-02 13.9 -26.7
    2 1.0 1900-01-03 13.3 -26.7
    3 1.0 1900-01-04 10.6 -26.1
    4 1.0 1900-01-05 12.8 -15.5

    Continue reading...

Compartilhe esta Página