Adjacent subplot width colorbar

How can I modify the colorbar width in an adjacent subplot? Thanks in advance

댓글 수: 3

Hugo Ochoa
Hugo Ochoa 2016년 8월 30일
Ok, but the problema is that I couldnt do that. I know actually how it works in figure, but I dont know How to fo it in subfigure. Thanks
Image Analyst
Image Analyst 2016년 8월 30일
You forgot to tell what version you have so someone can give you one answer instead of two possible answers.
Walter Roberson
Walter Roberson 2016년 8월 30일
subfigures do not exist in MATLAB. subplot() exists and creates multiple axes.
Is the question about how, given a particular subplot, you can modify the width of the associated colorbar ? If so then by far the easiest way is to record the handle that is returned by the colorbar() call and modify its Position property.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 8월 30일

0 개 추천

With R2014b or later, you can modify the Position property of the colorbar object.
With R2014a or earlier, a colorbar is actually an axes, and you can modify the axes Position property.

카테고리

질문:

2016년 8월 30일

댓글:

2016년 8월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by