It just draws from the bottom left, which make quite sense if you check out the labeling on the x&y-axes. Check out documentation
You can invert it though:
by flipping the y-axis
plt.gca().invert_yaxis()
or by changing your input matrix (if appropriate ...)