Borrar filtros
Borrar filtros

How to add axes to the object with volshow?

10 visualizaciones (últimos 30 días)
結衣菜
結衣菜 el 10 de Jul. de 2023
Comentada: 結衣菜 el 11 de Jul. de 2023
I wanna add x,y,z axes to this object which is created by volshow.

Respuesta aceptada

Angelo Yeo
Angelo Yeo el 11 de Jul. de 2023
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 comentarios
Angelo Yeo
Angelo Yeo el 11 de Jul. de 2023
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.
結衣菜
結衣菜 el 11 de Jul. de 2023
Thank you very much! I was using R2021b, now I understand
Best regards

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by