Quiver3 resets axes automatically?

1 次查看(过去 30 天)
Tyler
Tyler 2018-4-14
编辑: Tyler 2018-4-14
I'm using the quiver3 function in a for loop, and each time I am replotting the arrows in different locations. However, I want the axis limits to stay constant for the entire loop. I se tthe axis limits using xlim, ylim and zlim, and I set the XLimMode (and Y and Z modes) to 'manual'. However, as I go through the loop, this mode changes to auto and I don't know how to prevent that. I even set it to manual and reset the limits in each iteration, but when it runs quiver3, the axes limits still change.
One guess I have is that it may be because I have not enabled the 'hold on' command. But if I do this, it plots every iteration on top of each other. I have tried assigning the quiver3 plot to a handle, like h1 = quiver3(...), and then deleting h1 each time through the loop, but this doesn't work (they still plot on top of each other). I've tried looking at the quiver3 documentation, but it's difficult for me to pinpoint how the XLimMode could be resetting itself with this function. Does anyone know why this happens?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surfaces, Volumes, and Polygons 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by