Same colormap with colorbar which has two axes

3 次查看(过去 30 天)
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.

回答(2 个)

John Doe
John Doe 2019-8-2
  1 个评论
Jack M
Jack M 2019-8-3
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?


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


Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by