MATLAB Answers

How to make a common color bar?

1 view (last 30 days)
I want to make a common color bar for 4 subplots. Any suggestions would be appreciated.EVWS_matlab.png

  0 Comments

Sign in to comment.

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 2 Oct 2019
This is how I do this neatly:
subplot(1,1,1)
cbh = colorbar_labeled('');
subplot(2,2,3)
plot([0 2])
subplot(2,2,2)
imagesc(peaks(123))
colorbar_labeled is an old function someone gifted me. This works very conveniently.
HTH

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!