How to make the color change in a graph more dramatic
2 ビュー (過去 30 日間)
古いコメントを表示
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');
0 件のコメント
採用された回答
Star Strider
2021 年 10 月 31 日
.
6 件のコメント
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 Center および File Exchange で Colormaps についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!