Apologies for the unclear phrasing of my previous question. Here is the updated version.
As shown in the figure below, there are two heatmaps, both created using the same matrix . I really like the color scheme used in the colorbar, so I hope to keep it unchanged. The only difference between the two plots is the setting of clim, but now I want to set clim([0,1]) while still displaying detailed information similar to the clim([0,0.2]) case. How can I achieve this? I would appreciate any suggestions.