[Python] secondary XY-axis in python matplotlib

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

  1. Stack

    Stack Membro Participativo

    Is it possible in matplotlib to get a secondary xy axis in the same graph? I am not looking for twinx() or twiny().

    I have two data sets: x1, y1 and x2, y2, which I both want to plot in the same graph. I would like to plot the first data set in the normal axes: ax1.plot(x1, y1). The second y-axis should be located on the right and the second x-axis should be located on the top.

    But how do I set this up?

    Continue reading...

Compartilhe esta Página