I think I am making some trivial mistake here, but it has been baffling me for a while. I was trying to plot some lines using matplotlib but one of the lines was being ignored. Just to make sure that something else was not interfering with the line, I created a new script with just those three lines of plot but still I don't get the middle line (from (1,1) to (20,20)). Any help is appreciated, thanks in advance! I have reproduced the script and the output below:
import matplotlib.pyplot as plt
plt.plot([20,1], [1,20])
plt.plot([1,1], [20,20])
plt.plot([20,2], [2,20])
plt.xlim(0, 25)
plt.ylim(0, 25)
plt.gca().set_aspect('equal')
plt.tight_layout()
plt.show()