functionalised triplot

starting knn comparison