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

조회 수: 4 (최근 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
  댓글 수: 2
Nisar Ahmed
Nisar Ahmed 2021년 3월 3일
Hi Bjorn,
Thanks, I tried as
y = caxis;
colormap(redblueu(64,[-11,0]));
but nothing appears in the figure except light red shaded graphics. Can you help to define the code here

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

추가 답변 (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