Closed arnsholt closed 4 years ago
Hey, thanks for reporting this issue! Yes, geoplot
definitely needs a more informative error message for this very common failure case. I've added an explicit error to the code (albeit in a slightly different place) in PR 193.
Using geoplot 0.4.0 from Conda.
I spent some time debugging an issue I had with the Voronoi plot, which turned out to be duplicate points in my input data. In this case the number of Voronoi regions is different from the number of input points, which breaks the plotting code (concretely
VoronoiPlot.draw()
fails on lines 1589-1591, where it tries to assign a series shorter than the target dataframe). I'm not sure if there's a way to handle this case gracefully, but I'd suggest a more informative error message; for example adding something like this at the end ofbuild_voronoi_polygons()
: