plot_point_cloud¶
-
gtda.plotting.plot_point_cloud(point_cloud, dimension=None, plotly_params=None)[source]¶ Plot the first 2 or 3 coordinates of a point cloud.
Note: this function does not work on 1D arrays.
- Parameters
point_cloud (ndarray of shape (n_samples, n_dimensions)) – Data points to be represented in a 2D or 3D scatter plot. Only the first 2 or 3 dimensions will be considered for plotting.
dimension (int or None, default:
None) – Sets the dimension of the resulting plot. IfNone, the dimension will be chosen between 2 and 3 depending on the shape of point_cloud.plotly_params (dict or None, optional, default:
None) – Custom parameters to configure the plotly figure. Allowed keys are"trace"and"layout", and the corresponding values should be dictionaries containing keyword arguments as would be fed to theupdate_tracesandupdate_layoutmethods ofplotly.graph_objects.Figure.
- Returns
fig – Figure representing a point cloud in 2D or 3D.
- Return type
plotly.graph_objects.Figureobject