Home > Software design >  How to increase the resolution of colormap in seaborn heatmap?
How to increase the resolution of colormap in seaborn heatmap?

Time:01-13

I have the following heatmap:

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

enter image description here

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.

CodePudding user response:

Not sure if this is what you want.

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