def tru_plot9(X,labels,t,plot_suffix,clust_names,clust_color, plot_loc):
"""
From clustering_on_transcript_compatibility_counts, see github for MIT license
"""
unique_labels = np.unique(labels)
plt.figure(figsize=(15,10))
for i in unique_labels:
ind = np.squeeze(labels == i)
plt.scatter(X[ind,0],X[ind,1],c=clust_color[i],s=36,edgecolors='gray',
lw = 0.5, label=clust_names[i])
plt.legend(loc='upper right',bbox_to_anchor=(1.1, 1))
plt.legend(loc='upper right',bbox_to_anchor=(1.19, 1.01))
plt.title(t)
plt.xlim([-20,20])
plt.ylim([-20,20])
plt.axis('off')
plt.savefig(plot_loc+ 't-SNE_plot_tru_plot9_'+ plot_suffix +'.pdf', bbox_inches='tight')
# Plot function with Zeisel's colors corresponding to labels
评论列表
文章目录