Hi, I am confused with the code block, plotting the decision boundary, at the end of the above code block.

From my understanding, it should be

ax.plot([0, x1], [x0, 0], …), not ax.plot([0,x0],[x1,0], …),

because,

If someone could explain where I get confused about this code,

I would really appreciate it.

Thank you in advance.