How to set the length of axis in figures?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi
Can anyone tell me how to set the length of axis in figures?
For example, i want to set x axis as 3cm and y axis as 6 cm.
Thanks a lot!
댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 10월 24일
The lengths in cm are only relevant when you print the figure. If you just want to control the aspect ratio, then you can use pbaspect()
ax = axes;
pbaspect(ax, [1 2 1])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!