[Python] Matplotlib Plotting repeating steps in x axis

Discussão em 'Python' iniciado por Stack, Março 16, 2025.

  1. Stack

    Stack Membro Participativo

    I have a dataframe like the following:

    ID Parm_1 Parm_2 Result
    0 100 100 0.2
    1 100 200 0.4
    3 100 300 0.9
    4 100 400 0.45

    5 200 100 0.01
    6 200 200 ...
    7 200 300 ...
    8 200 400 ...

    9 300 100 ...


    As you can see there is a repeating sequence with Parm_1 and Parm_2; when Parm_1 increases, the same 4 Parm_2 values are cycled. However, I don't know how to represent this with matplotlib. I want to draw this where the x-axis shows this increment, as the (crude) drawing shows below.

    Any ideas?

    Thanks in advance

    [​IMG]

    Continue reading...

Compartilhe esta Página