How can I plot a 3D graph perspectivly?

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.

 Respuesta aceptada

Más respuestas (2)

KSSV
KSSV el 22 de Jul. de 2016

0 votos

You have to play around with xtick, ytick, ztick and view angle...it is very much possible.....
Allen Benjamin
Allen Benjamin el 22 de Jul. de 2016
You can use the axes projection property:
ax = axes;
ax.Projection = 'perspective';

1 comentario

KAE
KAE el 30 de Jul. de 2019
Editada: KAE el 30 de Jul. de 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';

Iniciar sesión para comentar.

Categorías

Más información sobre Axes Appearance en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Jul. de 2016

Editada:

KAE
el 30 de Jul. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by