KrishnaswamyLab / scprep

A collection of scripts and tools for loading, processing, and handling single cell data.
MIT License
72 stars 19 forks source link

Setting cmap with dictionary ignores keys if `c` contains only one unique value #42

Closed dburkhardt closed 5 years ago

dburkhardt commented 5 years ago
import scprep
cmap={'Path1':'#1b9e77',
     'Path2':'#d95f02',
     'Path3':'#7570b3'}

scprep.plot.scatter([1,2], [1,2], c=['Path2', 'Path2'], cmap=cmap)

image