The points being drawn by the Plotter don seem to match the x and y-coordinates of the points?
The distribution that was selected for the test data generates points where the x-coordinate is an integer between 0 and 100000 and where the y-coordinate is an integer between 0 and 300000. However, the calls made to the Plotter class scaled them to fit into a square. While it is doing this correctly, it causes a distortion in terms of the physical distance on the screen corresponding to the true distance. If you would like to remove this distortion, change the 100000 in the “new Plotter” lines to 300000. That is by changing: new Plotter(ptsByX,0,0,100000,300000,true,”Sorted by X-coordinate”); new Plotter(ptsByY,0,0,100000,300000,true,”Sorted by Y-coordinate”); new Plotter(ptsByX,0,0,100000,300000,false,”Output”); correspondingly to new Plotter(ptsByX,0,0,300000,300000,true,”Sorted by X-coordinate”); new Plotter(ptsByY,0,0,300000,300000,true,”Sorted by Y-coordinate”); new Plotter(ptsByX,0,0,300000,300000,false,”Output”); the distortion will no longer be there. Of course you’ll see tha