[Python] x-axis: order the numbers

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

  1. Stack

    Stack Membro Participativo

    [​IMG]

    I would like to classify the x-axis with intervals of 2.

    x = [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15,16, 18, 19, 21, 22, 24]

    I used the code below, but it didn't work

    plt.xticks(np.arange(0,25,2))


    x = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24]

    Thank you in advance for your help

    Continue reading...

Compartilhe esta Página