How to set the length of axis in figures?

조회 수: 3 (최근 30일)
kaichuan zhu
kaichuan zhu 2020년 10월 24일
답변: Ameer Hamza 2020년 10월 24일
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!

답변 (1개)

Ameer Hamza
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])

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by