Let's take one point cloud for each of the three categories

We will compute persistence diagrams for the Vietoris Rips and for the Cech filtrations.

Vietoris-Rips filtration

Cech filtration

Now let's plot the diagrams for the Cech and the Vietoris-Rips filtration. We can do it either with the plot_diagram function as well as with the plot of the VR method.

or

Now let's plot both Cech and Vietoris-Rips persistence diagrams.

Now let's compute some features from our persistence diagram.