How can I plot a 3D graph perspectivly?

22 ビュー (過去 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 Center および File ExchangeAxes Appearance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by