Overplot scatter plot on imagesc with different colorbar

조회 수: 7 (최근 30일)
Graeme Scott
Graeme Scott 2018년 9월 19일
댓글: KSSV 2018년 9월 20일
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.

채택된 답변

KSSV
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
Graeme Scott
Graeme Scott 2018년 9월 20일
Excellent, thankyou very much for that!
KSSV
KSSV 2018년 9월 20일
Thank you is accepting the answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Color and Styling에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by