from macslib import * # Replace the file name below with the name of the dataset. xpoints, ypoints, zpoints = loadData( 'fileNameHere', delimiter=' ', usecols=(0,1,2) ) # Set the number of clusters below! numberOfClusters = ?? drawKMeans(xpoints, ypoints, zpoints, numberOfClusters, title="K-means with "+str(numberOfClusters)+" clusters", xaxis=["X",xpoints.min(),xpoints.max()], yaxis=["Y",ypoints.min(),ypoints.max()], zaxis=["Z",zpoints.min(),zpoints.max()])