Stabilizing the colormap range to compare two surface plot diagrams in Matlab -


whatever tried couldn't stabilize colors of 2 diagrams. when values decrease 0 - 30 0-1 colormap adapts new values. in figures attached, need stabilize first color scale 0-30, , second legend should dark blue surface.

disregard y-values.

0-30 0-1

thank , advices.

the partial code below.

args = {time,freq,abs(cfs).^2};  surf(args{:},'edgecolor','none');  view(0,90); axis tight;  shading interp; colormap(parula(128));  h = colorbar;   

i tried didn't work.

set(h,'ylim',[0 100]);  yal=linspace(1,100); set(h,'ytick',yal);  

try adding instead:

caxis([0 100]); 

https://www.mathworks.com/help/matlab/ref/caxis.html


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -