Does the latest version of Matlab allow more than one colormaps in one plot?
조회 수: 1 (최근 30일)
이전 댓글 표시
In the past, overlaying two axes was the only option, but overlaying can often causes its own problems, e.g., slight offset, etc.
Does anyone know if Matlab has fixed the issue?
Many thanks.
댓글 수: 3
채택된 답변
Image Analyst
2021년 11월 3일
편집: Image Analyst
2021년 11월 3일
Nothing to fix. You can have only one colormap per axes control, but you can get around that by having basically two colormaps stacked on top of each other and adjust your data. For example if you have data that goes from 0 to 1023 (like a uint16 image) and want one colormap for gray levels 0-511 (say gray) and another (say, hsv) from 512 to 2013, you can do
cmap = [gray(512); hsv(512)]
imshow(yourImage, 'Colormap', cmap);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Orange에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!