Is this distance variable?
조회 수: 9 (최근 30일)
이전 댓글 표시
Dear Community,

in the picture you can see a distance. Is it possible to enlarge this distance, so that the graphic looks better?
Thanks for help and have a nice evening, Christian
댓글 수: 0
채택된 답변
Mike Garrity
2016년 1월 13일
Yes and no.
The YLabel property of the axes is a handle to a text object, and you can set the Position property of that to move it around, but that can get a bit messy if the axes changes because you're both trying to control the same position.
The traditional trick here is to add an extra line to increase the gap:
ylabel({'My Label';' '})
You can fine-tune that by using tex interpreter (or latex) commands:
ylabel({'My Label';'\fontsize{24} '})
추가 답변 (2개)
Star Strider
2016년 1월 13일
Also, if you want to use LaTeX syntax, you need to specify the LaTeX interpreter:
xlabel('$\rm{time}~[s]$', 'Interpreter','latex')
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!