Plotting dependencies for KNN