pub fn detect_regular_grid(x: &[f64], y: &[f64]) -> Option<RegularGrid>Expand description
Auto-detect that the points lie on a regular grid, faithful to silx
_guess_grid (scatter.py:148-188).
First tries a Z-like 2D grid via guess_z_grid_shape. Failing that, falls
back to a single line when either coordinate is monotonic (the line runs
along whichever axis varies more), reported as row-major. Returns None
when the points form neither a grid nor a guessable line.
x and y must have equal length.