python barplot 比例bili scanpy

Advanced Single-cell Omics (nbisweden.github.io)

tmp = pd.crosstab(adata.obs['clusters'],adata.obs['library_id'], normalize='index')
tmp.plot.bar(stacked=True).legend(loc='upper right')

你可能感兴趣的:(纸上得来终觉浅,python,开发语言)