Mesh 3-D plot axes position

조회 수: 1 (최근 30일)
muhammad saqlain
muhammad saqlain 2018년 12월 29일
댓글: muhammad saqlain 2018년 12월 31일
with reference to attached figure,i want to set x,y,z axis exactly the same as in attached file.Conventionally, 3D mesh set the axes in its default setting way.Looking for answer.Thanks

답변 (2개)

Stephen23
Stephen23 2018년 12월 29일
편집: Stephen23 2018년 12월 29일
Set the axes' Projection, CameraPosition and CameraUpVector properties:
To set the camera properties you can use the convenience functions campos and camup.

Star Strider
Star Strider 2018년 12월 29일
Another option that appears to have worked well: Rotate X and Y axes with a bar3 plot (link).
  댓글 수: 2
Star Strider
Star Strider 2018년 12월 30일
First, what you want to do it is not clear, and ‘it does not work’ gives us no useful information.
Second, if your code is already creating the plot in the image you posted, you can use the view function to return the azimuth and elevation for it. You can then use those values for the plot you want to create. Otherwise, you can use the figure GUI to rotate the plot you want to adjust to the orientation you want. The azimuth and elevation will be displayed in the lower left corner as you rotate it, so you can use those values as arguments to the view function in your code. You may have to experiment with the view arguments to get the result you want.
muhammad saqlain
muhammad saqlain 2018년 12월 31일
@strider.i try according to your suggestion.

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

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by