What colormap I should choose to plot my figure like I attached to this question?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nisar Ahmed
am 3 Mär. 2021
Kommentiert: Nisar Ahmed
am 3 Mär. 2021
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.
0 Kommentare
Akzeptierte Antwort
Bjorn Gustavsson
am 3 Mär. 2021
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Colormaps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!