【发布时间】:2017-03-20 14:32:57
【问题描述】:
正如您在图片中看到的,我正在使用 mArrow3 函数来显示平面的方向。 但是,有时任何飞镖都会表现得很奇怪。
我正在使用的代码:
drawnow;
xExt = abs(diff(get(gca, 'XLim')));
yExt = abs(diff(get(gca, 'YLim')));
zExt = abs(diff(get(gca, 'ZLim')));
mArrow3([0 0 0],[xExt / 1, 0, 0], 'lineWidth', 2,'color','red','facealpha', 0.1);
mArrow3([0 0 0],[0, yExt / 1, 0], 'lineWidth', 2,'color','red','facealpha',0.1);
mArrow3([0 0 0],[0, 0, zExt / 1], 'lineWidth', 2,'color','red','facealpha',0.1);
text(xExt, 0, 0, 'Vx','FontSize',12);
text(0, yExt, 0, 'Vy','FontSize',12);
text(0, 0, zExt, 'Vz','FontSize',12);
您能否就这个问题给我任何提示?
【问题讨论】:
-
“行为怪异”...我们需要做的远不止这些。
-
什么是
mArrow3? -
这是一个函数,可以显示平面的方向。在这种情况下,红色箭头。
-
奇怪的意思是,正如你在图片中看到的,Vx 的宽度不同于 Vy 和 Vz。我不知道为什么,因为设置是一样的。
-
不是内置函数。它在哪里?见:minimal reproducible example
标签: matlab matlab-figure figure