Set colorbar outside the window

23 views (last 30 days)
V.D-C
V.D-C on 27 Feb 2020
Commented: Adam Danz on 27 Feb 2020
Hello,
I would like to know if it is possible to display the colorbar outside the window ? (further to the right, outside the axis)
Have a good day !

Accepted Answer

Adam Danz
Adam Danz on 27 Feb 2020
Edited: Adam Danz on 27 Feb 2020
Use the location property
  2 Comments
V.D-C
V.D-C on 27 Feb 2020
Thanks ! I couldn't make it work because I put:
ax = axes
colorbar(ax, etc...) and for some reason it was giving me an error.
Adam Danz
Adam Danz on 27 Feb 2020
It sould also work if you include the handle.
colorbar(axisHandle, 'WestOutside')

Sign in to comment.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!