简体   繁体   中英

How to increase the resolution of colormap in seaborn heatmap?

I have the following heatmap:

sns.heatmap(df, cmap="crest_r")

在此处输入图像描述

I want to be able to see the differences between 0 and 0.1. Specifically if they are higher than 0.05. Is there anyway to change the cmap to a higher "resolution"? If not do you have any suggestions as to how I can differentiate p<0.05 and p>0.05.

Not sure if this is what you want.

sns.heatmap(df, cmap="crest_r", vmin=0, vmax=0.1)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM