How to make a 3D scatterplot with perspective

23 visualizaciones (últimos 30 días)
Dave Woodall
Dave Woodall el 26 de Mzo. de 2018
Comentada: KAE el 30 de Jul. de 2019
I need to create a 3D scatterplot that looks something like this:
Where X is left-right, Y is depth, and Z is height.
I have arrays of X, Y and Z points and have been playing with scatter3(), but need perspective in the Y direction to better show position, and other things like turning off the Z axes, etc. Is this possible?

Respuestas (1)

Star Strider
Star Strider el 27 de Mzo. de 2018
See the documentation on the Axes Properties (link) 'Projection' (link) property.
For example:
set(gca, 'Projection','perspective')
  3 comentarios
Star Strider
Star Strider el 27 de Mzo. de 2018

I can’t figure out what you want to do. You already seem to have done much of what I’d have suggested.

See if the options in the grid (link) or box (link) functions will do what you want.

KAE
KAE el 30 de Jul. de 2019
I am confused by your picture. The dots all look the same size. Didn't you want faraway dots to look smaller and closer dots to look bigger?

Iniciar sesión para comentar.

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by