Set cbar min and max for group cluster card

So, I'm trying to set the range for colorbar in a marine map of clusters. The range that it automatically generates is too large, and the colors are not well represented. Is there a way to manually set the range?

Now my cluster map looks something like this:

my clustermap [1]

Below is my code:

zrf = pd.read_csv("zebrafish_results.csv", index_col="gene_name")
my_cmap = sns.diverging_palette(240, 10, n=9, as_cmap=True)
plot = sns.clustermap(zrf, figsize=(10,20),cmap=my_cmap)
+4
source share

Source: https://habr.com/ru/post/1676501/


All Articles