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]](https://fooobar.com//img/d65a5edc4476deeef6e8c5abe8f32107.png)
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)
source
share