How to add axes to the object with volshow?
조회 수: 10 (최근 30일)
이전 댓글 표시
I wanna add x,y,z axes to this object which is created by volshow.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1431368/image.png)
댓글 수: 0
채택된 답변
Angelo Yeo
2023년 7월 11일
If you mean OrientationAxes, you can refer to the following example.
load("spiralVol.mat")
h = volshow(spiralVol);
viewer = h.Parent;
viewer.OrientationAxes = 'on'; % 'off' will remove the orientation axis from the canvas
Note that the volshow renders graphics on canvas not on an axis. Hence, the ability to render generic "axes", e.g. for plot, is not available.
댓글 수: 3
Angelo Yeo
2023년 7월 11일
Which release are you using? The Viewer3D properties are introduced from R2022b. If you are using a MATLAB release previous to R2022b, try to upgrade to the most recent release, i.e., R2023a and see if issue is solved.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Basic Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!