mArrow3 function and text in a 3D figure
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Franta Cymorek
el 7 de Mzo. de 2017
Comentada: Franta Cymorek
el 9 de Mzo. de 2017
I'm using the mArrow3 function, but it does not work always, ussually not. The code:
hold on;
mArrow3([0 0 0],[1 0 0],'lineWidth',0.0000002,'color','red','facealpha',0.05);
mArrow3([0 0 0],[0 1 0],'lineWidth',0.0000002,'color','red','facealpha',0.05);
mArrow3([0 0 0],[0 0 1],'lineWidth',0.0000002,'color','red','facealpha',0.05);
hold off
Could you please give me any hint? It doesn't show any errors, just doesn't appear for most of the time. But on it's own it just works fine.
One more question, do you know how to put titles to X, Y and Z directions? I mean appearing it just next to the arrows.
Now about the text command. I need to put three different texts in three different places - with just text command I put everywhere the same text. Is there any similar command to the text command?
2 comentarios
Jan
el 7 de Mzo. de 2017
I assume you mean https://www.mathworks.com/matlabcentral/fileexchange/25372-marrow3-m-easy-to-use-3d-arrow. Please note, that this is not obvious.
Respuesta aceptada
Jan
el 7 de Mzo. de 2017
What exactly does "most of the time" mean? Please post some code, which reproduce the problem.
The lineWidth of 0.0000002 is very small. My first idea is, that the arrow is not visible, because it is far to thin. Did you try it with something less slender?
16 comentarios
Jan
el 9 de Mzo. de 2017
I assume that this works. The code of mArrow3 does not look trivial, but with the debugger you can examine, where what is drawn.
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!