How to make the color change in a graph more dramatic

조회 수: 2 (최근 30일)
kyungdoo lee
kyungdoo lee 2021년 10월 31일
댓글: Star Strider 2021년 11월 1일
The graph is smooth, so there is not much color change, but I want to change it more diversely.
clear all
clc
T = readtable('data1.xlsx') ;
T = table2array(T) ;
x = T(1,2:end); %
y = T(2:end,1); %
Z = T(2:end,2:end); % use fillmissing to fill NaNs
[X,Y] = meshgrid(x,y) ;
[xq,yq] = meshgrid(2:0.1:10); % grid 0.1
Zq = interp2(x,y,Z,xq,yq,'spline'); % spline
figure
AA = surf(xq,yq,Zq);
title('(spline,cubic,makima) Interpolation Using Finer Grid');

채택된 답변

Star Strider
Star Strider 2021년 10월 31일
Choosing a different colormap is the only option I am aware of.
.
  댓글 수: 6
kyungdoo lee
kyungdoo lee 2021년 11월 1일
I want this graph color
Star Strider
Star Strider 2021년 11월 1일
Use the turbo colormap. An alternative is the jet colormap, however it is not as consistent with respect to the normal spectral colours.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by