how to plot a perfect cartesian plane

3 visualizaciones (últimos 30 días)
Paris Pasqualin
Paris Pasqualin el 11 de Nov. de 2017
Comentada: Star Strider el 12 de Nov. de 2017
Hello, I generated a script that creates a wind turbine blade and creates the surf plots. I would like to have x_axis/y_axis = 1 in order to have a realistic view of the blade. Does anyone have any suggestions on how to do it? Thanks in advice for the help!

Respuesta aceptada

Star Strider
Star Strider el 11 de Nov. de 2017
Guessing here. See if using axis equal after you create the plot does what you want. You can set the axis limits separately with another axis call.
To illustrate:
figure(1)
surf(X, Y, Z)
axis([-1 1 -1 1 -5 5])
axis equal
This preserves the axis limits set in the first call, then makes the aspect ratio proportionate to the axis limits for the three axes.
  2 comentarios
Paris Pasqualin
Paris Pasqualin el 12 de Nov. de 2017
It worked! Thanks a lot
Star Strider
Star Strider el 12 de Nov. de 2017
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by