193 made it so that duplicate points in the geometry passed into voronoi would raise a ValueError. This is correct behavior the Voronoi algorithm requires that no too points have the same coordinate value, but it broke one of the plot reference renderers.
The fix I've made here is applying gplt.ops.jitter_points to the input data first. This uniquifies the points by applying a small random jitter to them.
gplt.ops.jitter_points is done for you automatically, if needed, for input passed to the quadtree plotter. This PR updates the behavior of the voronoi plotter to do the same.
193 made it so that duplicate points in the geometry passed into
voronoi
would raise aValueError
. This is correct behavior the Voronoi algorithm requires that no too points have the same coordinate value, but it broke one of the plot reference renderers.The fix I've made here is applying
gplt.ops.jitter_points
to the input data first. This uniquifies the points by applying a small random jitter to them.gplt.ops.jitter_points
is done for you automatically, if needed, for input passed to thequadtree
plotter. This PR updates the behavior of thevoronoi
plotter to do the same.