필터 지우기
필터 지우기

Modify Aspect Ratio in pcshow plot?

조회 수: 7 (최근 30일)
Seb H
Seb H 2018년 7월 5일
답변: MiguelPujol 2024년 5월 7일
Hi,
I'm currently trying to modify the aspect ratio on my pcshow plot, but it doesn't work. I already tried pbaspect([1 1 50]) and set(gca,'PlotBoxAspectRatio',[1 1 50]).
The problem is that the limits of the x- and y-axis are in the hundreds, but the z-axis is only from 0 to 10. I thought pbaspect would strech my z-axis so that the points are better visible in z-direction.
Thanks!

답변 (1개)

MiguelPujol
MiguelPujol 2024년 5월 7일
stretch_x = 1;
stretch_y = 1;
stretch_z = 50; % Stretch z axis by 50X
set(gca, 'DataAspectRatio', [1/stretch_x, 1/stretch_y, 1/stretch_z]);

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by