def tsplot_clusters( X, y): """ X, 2d array with y, cluster index """ for yit in list(set(y)): sns.tsplot( X[y==yit,:], color=plt.cm.rainbow(yit/max(y)))