hatvis.plotting.isocontour#
- hatvis.plotting.isocontour(points, others=None, sigma=0.05, level=0.5, grid=160, negative=0.6, bounds=None)[source]#
Implicit outline of a point set (in the spirit of Bubble Sets, Collins et al. 2009).
The field \(f(\mathbf{x})=\sum_{i\in e}k(\mathbf{x}-\mathbf{y}_i)-\eta\sum_{j\notin e}k(\mathbf{x}-\mathbf{y}_j)\) with Gaussian kernels of width \(\sigma\) is thresholded at
level(relative to the kernel peak); non-members (others) push the outline away with weight \(\eta\) (negative). Returns the contour polygons (closed) that contain at least one member.