plot_point_cloud

gtda.plotting.plot_point_cloud(point_cloud, dimension=None)[source]

Plot the first 2 or 3 coordinates of a point cloud.

This function will 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. If None, the dimension will be chosen between 2 and 3 depending on the shape of point_cloud.