What colormap I should choose to plot my figure like I attached to this question?

5 次查看(过去 30 天)
Say my code is
[Shot] = (ReadRSS('Pshot.rss'));
figure(1),
subplot(1,3,1);
imagesc(Shot); xlabel('Offset (m)'); ylabel('Time (ms)');
color=caxis; caxis(color*.005); colormap(gray);
I want to plot in the colormap shown in the attached figure rather than gray map.

采纳的回答

Bjorn Gustavsson
Bjorn Gustavsson 2021-3-3
You will find a couple of red-blue colormap-functions on the file exchange: redblue-colormap-generator-with-zero-as-white-or-black, diverging-redblue-colormap-from-tecplot and red-blue-colormap. Either of those should give you the colormap you want. Further fine-tuning you have to do yourself...
HTH

更多回答(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