How can I plot a 3D graph perspectivly?

26 visualizzazioni (ultimi 30 giorni)
peng wang
peng wang il 22 Lug 2016
Modificato: KAE il 30 Lug 2019
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.

Risposta accettata

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

Più risposte (2)

KSSV
KSSV il 22 Lug 2016
You have to play around with xtick, ytick, ztick and view angle...it is very much possible.....

Allen Benjamin
Allen Benjamin il 22 Lug 2016
You can use the axes projection property:
ax = axes;
ax.Projection = 'perspective';
  1 Commento
KAE
KAE il 30 Lug 2019
Modificato: KAE il 30 Lug 2019
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';

Accedi per commentare.

Categorie

Scopri di più su Axes Appearance in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by