How to fix a limit between 2 combined colormaps?
이전 댓글 표시
My problems is that I'm trying to use two combined colorbars to get more color range in depicting my values. But if I define clim ([100 350]) w the average gets used as the splitting point between the 2 colormaps (meaning here 225). Now, I know that I can fix the colorbar manually by shifting it in the figures and saving it then, but this is very impractical since I'm trying to create many figures. Is there any good line of code, that could help me fix the limit directly?
My code:
clim([100 350])
colormap([flipud(m_colmap('blues')); colormap(slanCM(6))])
I would like to use the "blues'" colormap for values between 100 and 200, the other one for values between 200 and 350.
Any help would be greatly appreciated.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

