Overplot scatter plot on imagesc with different colorbar
조회 수: 7 (최근 30일)
이전 댓글 표시
I'm using the imagesc command to display a density map with a colormap, as well as the scatter command to overplot some x-y data scaled with a colored point according to a z data set, which is fine. I wondered if there is a way to do this and use two different colormaps for the two different data sets? I can't seem to find a way of stopping them using the same one.
Many thanks.
댓글 수: 0
채택된 답변
KSSV
2018년 9월 20일
IT can be done....you need to define two axes and plot what you want. Refer this blow link: https://in.mathworks.com/matlabcentral/answers/194554-how-can-i-use-and-display-two-different-colormaps-on-the-same-figure
댓글 수: 3
추가 답변 (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!