colormap & caxis matching nonlinear plots
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to fit my data to match the published map below (the figure on the left), but cannot figure out the right code for the colour bar. The increments are non linear.

Here is the relevant code that I have (it is part of a large code):
caxes.donatt = [0 2.5];
colormaps.donat = mf_colormap_cpt('BlWhRe', 8);
colormaps.donat(1:1,:) = [0.00 0.00 0.50];
colormaps.donat(2:2,:) = [0.00 0.50 1.00];
colormaps.donat(3:3,:) = [0.67 0.90 0.93];
colormaps.donat(4:4,:) = [1.00 1.00 1.00];
colormaps.donat(5:5,:) = [1.00 0.87 0.68];
colormaps.donat(6:6,:) = [0.98 0.67 0.38];
colormaps.donat(7:7,:) = [1.00 0.40 0.10];
colormaps.donat(8:8,:) = [1.00 0.00 0.00];
Below is my result, which is okay but misaligned and I cant seem to get it perfect.

Please can somebody help?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!