It could be nicer to do spatial things, especially with Individuals. I've sandboxed out some things that'd make this easier over [here](https://github.com/gbradburd/spgr/tree/master/plots/spatial_slim): Here's some ideas: - [add a `.dim` attribute](https://github.com/gbradburd/spgr/blob/f4b175a8c51ecedf6196b682e417f60df53b058c/plots/spatial_slim/spatial_slim_ts.py#L10), defaulting to 3 - an [`individual_locations()`](https://github.com/gbradburd/spgr/blob/f4b175a8c51ecedf6196b682e417f60df53b058c/plots/spatial_slim/spatial_slim_ts.py#L278) that returns the array of spatial coordinates (with `dim` columns) - [`distance_to_point(xy)`](https://github.com/gbradburd/spgr/blob/f4b175a8c51ecedf6196b682e417f60df53b058c/plots/spatial_slim/spatial_slim_ts.py#L12) : distance of all individuals to a point. - [`individuals_in_circle(center, radius)`](https://github.com/gbradburd/spgr/blob/f4b175a8c51ecedf6196b682e417f60df53b058c/plots/spatial_slim/spatial_slim_ts.py#L27) and maybe more? Should these return boolean arrays? lists of individual IDs? iterators over individual objects?
Activity