Perceptron Logic Gates Project

while doing the perceptron logic gates project

At step 14, for creating a heat map, we have to reshape the distances to a matrix of 2x2.
the distances represents points which can be expressed in coordinates. The distances were found using a mathematical equation and while reshaping the 1000 number of distances in 2x2 format, the coordinates that form this data isn’t representative of the actual distances that we found out using the classifier’s .decision_function() method!
wouldn’t that mean that the heat map we created is wrong ?
shouldn’t we find the actual co-ordinates for the distances containing those 1000 points and put them in the plt.pcolormesh() method ?
if yes, how do we that ?