how to plot a perfect cartesian plane

조회 수: 3 (최근 30일)
Paris Pasqualin
Paris Pasqualin 2017년 11월 11일
댓글: Star Strider 2017년 11월 12일
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!

채택된 답변

Star Strider
Star Strider 2017년 11월 11일
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
Paris Pasqualin
Paris Pasqualin 2017년 11월 12일
It worked! Thanks a lot
Star Strider
Star Strider 2017년 11월 12일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by