Same colormap with colorbar which has two axes

5 Ansichten (letzte 30 Tage)
Jack M
Jack M am 2 Aug. 2019
Bearbeitet: Jack M am 12 Jun. 2021
Would it be possible to have a colorbar with two variables (one on each side of the colorbar)?
I.e. if you take this Colorbar for example, I would like to also have different values on the left side of the colorbar for a different variable which shares the same units.
Thank you.

Antworten (2)

John Doe
John Doe am 2 Aug. 2019
  1 Kommentar
Jack M
Jack M am 3 Aug. 2019
Unfortunately, that is not what I was looking for.
I wanted one colormap with a colorbar with two axes (two variables) where I get to pick the ticks for each of the variables on either side of the colorbar.
Hope that clarifies things?

Melden Sie sich an, um zu kommentieren.

Rik am 13 Aug. 2019
You can add a second tick row on the right side of the colorbar using the code below.
'YTick',1:10,'YLim',[1 10],...


Mehr zu Colormaps 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