viroconwebcontour.plot_generic module¶
Generic plotting methods.
-
contour.plot_generic.
alpha_shape
(points, alpha)[source]¶ Computes the alpha shape (concave hull) of a set of points
Parameters: - points (MultiPoint,) – Iterable container of points.
- alpha (float,) – Alpha value to influence the gooeyness of the border. Smaller numbers don’t fall inward as much as larger numbers. Too large and you lose everything!
-
contour.plot_generic.
convert_ndarray_list_to_multipoint
(ndarray_list)[source]¶ Converts an array list to a MultiPoint, which is required by alpha_shape
Parameters: ndarray_list (list of ndarray,) – A list of data points. # TODO: Type “list of ndarray” is inconsistent with the documentation of plot.plot_contour which claims it is a list of float. Check that. Returns: points – The data points as an MultiPoint object such that the method alpha_shape can work with it. Return type: MultiPoint,