Input: a line grid NX NY, then a CSV x,y.
Compute a 2D histogram with np.histogram2d(x, y, bins=[NX, NY]) and print 11 points, x [0, 8], y [0, 9], grid 4x3, then the counts as a grid with the top row (largest y) first, each count right-aligned in 3 characters and separated by spaces, then densest cell: x [0, 2), y [0, 3) with 4 points (36%) (the first maximum in x-then-y order), empty cells: 7 of 12, and suggested idiom for this size: … — plain scatter plot (maybe with transparency) for fewer than 1,000 points, scatter with transparency, smaller marks or jitter up to 10,000, otherwise 2D binning (heat map / hexbin) or datashader.