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 Center および File ExchangeColor and Styling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by