How can I plot a 3D graph perspectivly?

조회 수: 24 (최근 30일)
peng wang
peng wang 2016년 7월 22일
편집: KAE 2019년 7월 30일
Is it possible that I set the axis of the 3D graph more "perspective"? That's to say when the object is colser to the viewer, it looks bigger. And parallel lines in 3D may looks un-parallel. The following figure is plotted in Origin, and obviously it looks better.

채택된 답변

Walter Roberson
Walter Roberson 2016년 7월 22일
Those are controlled by the various View properties of the axes object. See also http://www.mathworks.com/help/matlab/views.html

추가 답변 (2개)

KSSV
KSSV 2016년 7월 22일
You have to play around with xtick, ytick, ztick and view angle...it is very much possible.....

Allen Benjamin
Allen Benjamin 2016년 7월 22일
You can use the axes projection property:
ax = axes;
ax.Projection = 'perspective';
  댓글 수: 1
KAE
KAE 2019년 7월 30일
편집: KAE 2019년 7월 30일
The marker sizes don't change for me with 'perspective'.
figure;
plot3(rand(1,10), rand(1,10), rand(1,10), 'ko')
ax = gca;
ax.Projection = 'perspective';

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by