필터 지우기
필터 지우기

How to center a figure in live script output

조회 수: 14 (최근 30일)
Varol Aydemir
Varol Aydemir 2018년 7월 10일
답변: Sam Raymond 2020년 2월 15일
On the right, you see the output panel of the live script. When I plot a figure, output is always left-aligned. How can I center the figure?
  댓글 수: 1
Varol Aydemir
Varol Aydemir 2018년 7월 11일
Here is a different way to describe my problem. I have some figures in the live script output that has a long title. Because it is long, the title is cut off.

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

답변 (3개)

Sam Raymond
Sam Raymond 2020년 2월 15일
If you use the Position option in the Figure defintion you can use the width and heights to push the figure into the center
figure('Position',[1000 100 1500 1000]);
If you play around with the values you should get the images in the center.

Brian Cianciola
Brian Cianciola 2018년 7월 10일
편집: Brian Cianciola 2018년 7월 10일
The movegui() function seems to be what you're looking for, specifically movegui(figureName, 'center')
  댓글 수: 3
Brian Cianciola
Brian Cianciola 2018년 7월 10일
Yeah, sorry about that. Just tested it out and it centers the new window that you open for the figure on your screen.
Varol Aydemir
Varol Aydemir 2018년 7월 10일
No worries! Thanks for the response though!

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


Sean de Wolski
Sean de Wolski 2018년 7월 10일
What if you adjust the live editor to have figures inline? Button on right hand side of editor.

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by