Overplot scatter plot on imagesc with different colorbar

7 Ansichten (letzte 30 Tage)
Graeme Scott
Graeme Scott am 19 Sep. 2018
Kommentiert: KSSV am 20 Sep. 2018
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.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Color and Styling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by